RestApiSecurityRequirement.TryGetValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the security scheme scopes associated with the specified security scheme.
public bool TryGetValue(Microsoft.SemanticKernel.Plugins.OpenApi.RestApiSecurityScheme key, out System.Collections.Generic.IList<string> value);
member this.TryGetValue : Microsoft.SemanticKernel.Plugins.OpenApi.RestApiSecurityScheme * IList -> bool
Public Function TryGetValue (key As RestApiSecurityScheme, ByRef value As IList(Of String)) As Boolean
Parameters
The security scheme to get the scopes for.
When this method returns, contains the security scheme scopes associated with the specified security scheme, if the security scheme is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Returns
true if the RestApiSecurityRequirement contains an element with the specified key; otherwise, false.