WindowsSecurityToken Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WindowsSecurityToken class.
Overloads
WindowsSecurityToken() |
Initializes a new instance of the WindowsSecurityToken class. |
WindowsSecurityToken(WindowsIdentity) |
Initializes a new instance of the WindowsSecurityToken class using the Windows user. |
WindowsSecurityToken(WindowsIdentity, String) |
Initializes a new instance of the WindowsSecurityToken class using the Windows user. |
WindowsSecurityToken(WindowsIdentity, String, String) |
Creates a new instance of WindowsSecurityToken. |
WindowsSecurityToken()
Initializes a new instance of the WindowsSecurityToken class.
protected:
WindowsSecurityToken();
protected WindowsSecurityToken ();
Protected Sub New ()
Remarks
This constructor does nothing, by default.
Applies to
WindowsSecurityToken(WindowsIdentity)
Initializes a new instance of the WindowsSecurityToken class using the Windows user.
public:
WindowsSecurityToken(System::Security::Principal::WindowsIdentity ^ windowsIdentity);
public WindowsSecurityToken (System.Security.Principal.WindowsIdentity windowsIdentity);
new System.IdentityModel.Tokens.WindowsSecurityToken : System.Security.Principal.WindowsIdentity -> System.IdentityModel.Tokens.WindowsSecurityToken
Public Sub New (windowsIdentity As WindowsIdentity)
Parameters
- windowsIdentity
- WindowsIdentity
A WindowsIdentity that represents a Windows user.
Exceptions
windowsIdentity
is null
.
Remarks
This constructor creates a unique identifier for the WindowsSecurityToken security token and assigns that value to the Id property.
Applies to
WindowsSecurityToken(WindowsIdentity, String)
Initializes a new instance of the WindowsSecurityToken class using the Windows user.
public:
WindowsSecurityToken(System::Security::Principal::WindowsIdentity ^ windowsIdentity, System::String ^ id);
public WindowsSecurityToken (System.Security.Principal.WindowsIdentity windowsIdentity, string id);
new System.IdentityModel.Tokens.WindowsSecurityToken : System.Security.Principal.WindowsIdentity * string -> System.IdentityModel.Tokens.WindowsSecurityToken
Public Sub New (windowsIdentity As WindowsIdentity, id As String)
Parameters
- windowsIdentity
- WindowsIdentity
A WindowsIdentity that represents a Windows user.
- id
- String
A unique identifier for the security token.
Exceptions
Remarks
This constructor calls the Initialize method to initialize the properties of this class.
Applies to
WindowsSecurityToken(WindowsIdentity, String, String)
Creates a new instance of WindowsSecurityToken.
public:
WindowsSecurityToken(System::Security::Principal::WindowsIdentity ^ windowsIdentity, System::String ^ id, System::String ^ authenticationType);
public WindowsSecurityToken (System.Security.Principal.WindowsIdentity windowsIdentity, string id, string authenticationType);
new System.IdentityModel.Tokens.WindowsSecurityToken : System.Security.Principal.WindowsIdentity * string * string -> System.IdentityModel.Tokens.WindowsSecurityToken
Public Sub New (windowsIdentity As WindowsIdentity, id As String, authenticationType As String)
Parameters
- windowsIdentity
- WindowsIdentity
A WindowsIdentity that represents a Windows user.
- id
- String
A unique identifier for the security token.
- authenticationType
- String
The authentication type for the security token.