BootstrapContext 构造函数

定义

初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class.

重载

BootstrapContext(Byte[])

使用指定的数组初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class by using the specified array.

BootstrapContext(String)

使用指定的字符串初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class by using the specified string.

BootstrapContext(SerializationInfo, StreamingContext)

从流中初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class from a stream.

BootstrapContext(SecurityToken, SecurityTokenHandler)

使用指定安全标记标记处理程序初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class by using the specified security token and token handler.

BootstrapContext(Byte[])

使用指定的数组初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class by using the specified array.

public:
 BootstrapContext(cli::array <System::Byte> ^ token);
public BootstrapContext (byte[] token);
new System.IdentityModel.Tokens.BootstrapContext : byte[] -> System.IdentityModel.Tokens.BootstrapContext
Public Sub New (token As Byte())

参数

token
Byte[]

一个表示令牌的数组。An array that represents the token.

例外

tokennulltoken is null.

适用于

BootstrapContext(String)

使用指定的字符串初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class by using the specified string.

public:
 BootstrapContext(System::String ^ token);
public BootstrapContext (string token);
new System.IdentityModel.Tokens.BootstrapContext : string -> System.IdentityModel.Tokens.BootstrapContext
Public Sub New (token As String)

参数

token
String

一个表示标记的字符串。A string that represents the token.

例外

tokennulltoken is null.

适用于

BootstrapContext(SerializationInfo, StreamingContext)

从流中初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class from a stream.

protected:
 BootstrapContext(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected BootstrapContext (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IdentityModel.Tokens.BootstrapContext : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IdentityModel.Tokens.BootstrapContext
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

序列化数据。The serialized data.

context
StreamingContext

序列化的上下文。The context for serialization.

例外

info 为 null。info is null.

适用于

BootstrapContext(SecurityToken, SecurityTokenHandler)

使用指定安全标记标记处理程序初始化 BootstrapContext 类的新实例。Initializes a new instance of the BootstrapContext class by using the specified security token and token handler.

public:
 BootstrapContext(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityTokenHandler ^ tokenHandler);
public:
 BootstrapContext(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityTokenHandler ^ handler);
public BootstrapContext (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityTokenHandler tokenHandler);
public BootstrapContext (System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityTokenHandler handler);
new System.IdentityModel.Tokens.BootstrapContext : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityTokenHandler -> System.IdentityModel.Tokens.BootstrapContext
new System.IdentityModel.Tokens.BootstrapContext : System.IdentityModel.Tokens.SecurityToken * System.IdentityModel.Tokens.SecurityTokenHandler -> System.IdentityModel.Tokens.BootstrapContext
Public Sub New (token As SecurityToken, tokenHandler As SecurityTokenHandler)
Public Sub New (token As SecurityToken, handler As SecurityTokenHandler)

参数

token
SecurityToken

要序列化的安全标记。The security token to serialize.

tokenHandlerhandler
SecurityTokenHandler

用于序列化标识处理程序。The handler with which to serialize the token.

例外

tokennulltoken is null.

-or- tokenHandlernulltokenHandler is null.

注解

标记处理程序不用于对令牌进行反序列化,因为在反序列化该令牌时,无法假定它存在。The token handler is not used to deserialize the token because it cannot be assumed to exist at the time when the token is deserialized.

适用于