Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.CreateWindowsIdentity Method

.NET Framework 4.5

Creates a WindowsIdentity object using the specified User Principal Name (UPN).

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

protected virtual WindowsIdentity CreateWindowsIdentity(
	string upn
)

Parameters

upn
Type: System.String

The UPN to use to create the identity.

Return Value

Type: System.Security.Principal.WindowsIdentity
The Windows identity that was created.

ExceptionCondition
ArgumentException

upn is null or an empty string.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft