WindowsSecurityToken Constructor (WindowsIdentity, String)

 
System_CAPS_noteNote

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

Initializes a new instance of the WindowsSecurityToken class using the Windows user.

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

public WindowsSecurityToken(
	WindowsIdentity windowsIdentity,
	string id
)

Parameters

windowsIdentity
Type: System.Security.Principal.WindowsIdentity

A WindowsIdentity that represents a Windows user.

id
Type: System.String

A unique identifier for the security token.

Exception Condition
ArgumentNullException

windowsIdentity is null.

-or-

id is null.

This constructor calls the Initialize method to initialize the properties of this class.

.NET Framework
Available since 3.0
Return to top
Show: