SecurityKeyIdentifier.Find<TClause> Method

Searches for a key identifier clause of the specified type and returns the first occurrence within the entire collection.

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

public TClause Find<TClause>()
where TClause : SecurityKeyIdentifierClause

Type Parameters

TClause

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

Return Value

Type: TClause
The first SecurityKeyIdentifierClause in the collection that is of the type specified in the TClause parameter.

ExceptionCondition
ArgumentNullException

TClause is null.

ArgumentException

The collection does not contain a key identifier clause of the type specified in the TClause parameter.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft