Export (0) Print
Expand All

ClaimsIdentity.FindFirst Method (Predicate(Of Claim))

.NET Framework 4.6 and 4.5

Retrieves the first claim that is matched by the specified predicate.

Namespace:  System.Security.Claims
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Overridable Function FindFirst ( _
	match As Predicate(Of Claim) _
) As Claim

Parameters

match
Type: System.Predicate(Of Claim)

The function that performs the matching logic.

Return Value

Type: System.Security.Claims.Claim
The first matching claim or Nothing if no match is found.

ExceptionCondition
ArgumentNullException

match is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft