Share via


RestApiSecurityRequirement.TryGetValue Method

Definition

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

key
RestApiSecurityScheme

The security scheme to get the scopes for.

value
IList<String>

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.

Applies to