SecurityKeyIdentifier.TryFind<TClause> Method (TClause)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Searches for a key identifier clause of the specified type and returns a value that indicates whether a clause of that type could be found. When a type is found it is returned in the out parameter.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public bool TryFind<TClause>(
	out TClause clause
)
where TClause : SecurityKeyIdentifierClause

Parameters

clause
Type: TClause

When this method returns, contains a SecurityKeyIdentifierClause that is of the type specified in the TClause parameter when a clause of that type could be found in the collection. This parameter is passed un-initialized.

Return Value

Type: System.Boolean

true when a key identifier clause of the type specified in the TClause parameter exists in the collection; otherwise, false.

Type Parameters

TClause

A SecurityKeyIdentifierClause that represents the type of key identifier clause to search the collection for.

When a key identifier clause of the type specified in the TClause parameter does not exist in the collection, the clause out parameter is null.

.NET Framework
Available since 3.0
Return to top
Show: