WindowsSecurityToken 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 WindowsSecurityToken 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| 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 ()
備註
這個建構器預設不做任何事。
適用於
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 使用者的 A WindowsIdentity 。
例外狀況
windowsIdentity 是 null。
備註
此建構子為安全權杖建立唯一識別碼 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 使用者的 A WindowsIdentity 。
- id
- String
一個安全令牌的唯一識別碼。
例外狀況
備註
此建構子呼叫該 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 使用者的 A WindowsIdentity 。
- id
- String
一個安全令牌的唯一識別碼。
- authenticationType
- String
安全令牌的認證類型。