WindowsSecurityToken Constructor (WindowsIdentity, String)

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.

ExceptionCondition
ArgumentNullException

windowsIdentity is null.

-or-

id is null.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft