語言

BootstrapContext 建構函式

定義

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

多載

名稱 Description
BootstrapContext(Byte[])

透過使用指定的陣列初始化該類別的新實例 BootstrapContext 。

BootstrapContext(String)

使用指定的字串初始化該類別的新實例 BootstrapContext 。

BootstrapContext(SecurityToken, SecurityTokenHandler)

透過指定的安全權杖與權杖處理程序初始化該類別的新 BootstrapContext 實例。

BootstrapContext(SerializationInfo, StreamingContext)

從串流初始化該 BootstrapContext 類別的新實例。

BootstrapContext(Byte[])

透過使用指定的陣列初始化該類別的新實例 BootstrapContext 。

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[]

一個代表標記的陣列。

例外狀況

token 是 null。

適用於

BootstrapContext(String)

使用指定的字串初始化該類別的新實例 BootstrapContext 。

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

一個代表標記的字串。

例外狀況

token 是 null。

適用於

BootstrapContext(SecurityToken, SecurityTokenHandler)

透過指定的安全權杖與權杖處理程序初始化該類別的新 BootstrapContext 實例。

public:
 BootstrapContext(System::IdentityModel::Tokens::SecurityToken ^ token, System::IdentityModel::Tokens::SecurityTokenHandler ^ tokenHandler);
public BootstrapContext(System.IdentityModel.Tokens.SecurityToken token, System.IdentityModel.Tokens.SecurityTokenHandler tokenHandler);
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)

參數

token
SecurityToken

安全令牌用來串行。

tokenHandler
SecurityTokenHandler

用來序列化標記的處理器。

例外狀況

token 是 null。

-或-

tokenHandler 是 null。

備註

標記處理程序不用於反序列化該標記,因為無法假設該處理器在標記被反序列化時已存在。

適用於

BootstrapContext(SerializationInfo, StreamingContext)

從串流初始化該 BootstrapContext 類別的新實例。

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

串行化的數據。

context
StreamingContext

串行化的內容。

例外狀況

info 為 空值。

適用於