Прочетете на английски Редактиране

Споделяне чрез


SamlSecurityTokenHandler.FindUpn(ClaimsIdentity) Method

Definition

Finds the UPN claim value in the specified ClaimsIdentity object for the purpose of mapping the identity to a WindowsIdentity object.

C#
protected virtual string FindUpn(System.Security.Claims.ClaimsIdentity claimsIdentity);

Parameters

claimsIdentity
ClaimsIdentity

The claims identity object containing the desired UPN claim.

Returns

A string that contains the UPN claim value found.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1