SamlSecurityTokenHandler.FindUpn Method (ClaimsIdentity)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Finds the UPN claim value in the specified ClaimsIdentity object for the purpose of mapping the identity to a T:System.Security.Claims.WindowsClaimsIdentity object.

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

protected virtual string FindUpn(
	ClaimsIdentity claimsIdentity


Type: System.Security.Claims.ClaimsIdentity

The claims identity object containing the desired UPN claim.

Return Value

Type: System.String

A string that contains the UPN claim value found.

.NET Framework
Available since 4.5
Return to top