Export (0) Print
Expand All

ClaimsIdentity.FindFirst Method (Predicate(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)

abstract FindFirst : 
        match:Predicate<Claim> -> Claim  
override FindFirst : 
        match:Predicate<Claim> -> Claim

Parameters

match
Type: System.Predicate(Claim)

The function that performs the matching logic.

Return Value

Type: System.Security.Claims.Claim
The first matching claim or a null reference (Nothing in Visual Basic) if no match is found.

ExceptionCondition
ArgumentNullException

match is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft