SecurityKeyIdentifier.TryFind<TClause>(TClause) Method

Definition

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.

C#
public bool TryFind<TClause> (out TClause clause) where TClause : System.IdentityModel.Tokens.SecurityKeyIdentifierClause;

Type Parameters

TClause

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

Parameters

clause
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.

Returns

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

Remarks

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.

Applies to

Product Versions
.NET 8 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)