Conversation.ClaimsFromIdentity(ClaimsIdentity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extracts a dictionary of selected claim types and their values from the specified identity.
public static System.Collections.Generic.IDictionary<string,string> ClaimsFromIdentity(System.Security.Claims.ClaimsIdentity identity);
static member ClaimsFromIdentity : System.Security.Claims.ClaimsIdentity -> System.Collections.Generic.IDictionary<string, string>
Public Shared Function ClaimsFromIdentity (identity As ClaimsIdentity) As IDictionary(Of String, String)
Parameters
- identity
- ClaimsIdentity
The identity from which to extract claims. Cannot be null.
Returns
A dictionary containing applicable claims from the ClaimsIdentity.
Remarks
Only claims with the types 'aud', 'azp', 'appid', 'idtyp', 'ver', 'iss', and 'tid' are included in the returned dictionary.