语言

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 ()

注解

默认情况下,此构造函数不执行任何操作。

适用于

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

一 WindowsIdentity 个表示 Windows 用户。

例外

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

一 WindowsIdentity 个表示 Windows 用户。

id
String

安全令牌的唯一标识符。

例外

windowsIdentity 是 null。

-或-

id 是 null。

注解

此构造函数调用 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

一 WindowsIdentity 个表示 Windows 用户。

id
String

安全令牌的唯一标识符。

authenticationType
String

安全令牌的身份验证类型。

适用于