WindowsSecurityToken 建構函式

定義

初始化 WindowsSecurityToken 類別的新執行個體。

多載

WindowsSecurityToken()

初始化 WindowsSecurityToken 類別的新執行個體。

WindowsSecurityToken(WindowsIdentity)

使用 Windows 使用者初始化 WindowsSecurityToken 類別的新執行個體。

WindowsSecurityToken(WindowsIdentity, String)

使用 Windows 使用者初始化 WindowsSecurityToken 類別的新執行個體。

WindowsSecurityToken(WindowsIdentity, String, String)

建立 WindowsSecurityToken 的新執行個體。

WindowsSecurityToken()

初始化 WindowsSecurityToken 類別的新執行個體。

protected:
 WindowsSecurityToken();
protected WindowsSecurityToken ();
Protected Sub New ()

備註

根據預設,建構函式 (Constructor) 不做任何動作。

適用於

WindowsSecurityToken(WindowsIdentity)

使用 Windows 使用者初始化 WindowsSecurityToken 類別的新執行個體。

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)

參數

windowsIdentity
WindowsIdentity

表示 Windows 使用者的 WindowsIdentity

例外狀況

windowsIdentitynull

備註

這個建構函式會產生 WindowsSecurityToken 安全性權杖的唯一識別碼,並且會將該值指派為 Id 屬性。

適用於

WindowsSecurityToken(WindowsIdentity, String)

使用 Windows 使用者初始化 WindowsSecurityToken 類別的新執行個體。

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)

參數

windowsIdentity
WindowsIdentity

表示 Windows 使用者的 WindowsIdentity

id
String

安全性權杖的唯一識別碼。

例外狀況

windowsIdentitynull

-或-

idnull

備註

這個建構函式會呼叫 Initialize 方法,以初始化這個類別的屬性。

適用於

WindowsSecurityToken(WindowsIdentity, String, String)

建立 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)

參數

windowsIdentity
WindowsIdentity

表示 Windows 使用者的 WindowsIdentity

id
String

安全性權杖的唯一識別碼。

authenticationType
String

安全性權杖的驗證類型。

適用於