Rediger

Del via


BootstrapContext Constructors

Definition

Initializes a new instance of the BootstrapContext class.

Overloads

BootstrapContext(Byte[])

Initializes a new instance of the BootstrapContext class by using the specified array.

BootstrapContext(String)

Initializes a new instance of the BootstrapContext class by using the specified string.

BootstrapContext(SecurityToken, SecurityTokenHandler)

Initializes a new instance of the BootstrapContext class by using the specified security token and token handler.

BootstrapContext(SerializationInfo, StreamingContext)

Initializes a new instance of the BootstrapContext class from a stream.

BootstrapContext(Byte[])

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

Parameters

token
Byte[]

An array that represents the token.

Exceptions

token is null.

Applies to

BootstrapContext(String)

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)

Parameters

token
String

A string that represents the token.

Exceptions

token is null.

Applies to

BootstrapContext(SecurityToken, SecurityTokenHandler)

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

Parameters

token
SecurityToken

The security token to serialize.

tokenHandler
SecurityTokenHandler

The handler with which to serialize the token.

Exceptions

token is null.

-or-

tokenHandler is null.

Remarks

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.

Applies to

BootstrapContext(SerializationInfo, StreamingContext)

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)

Parameters

info
SerializationInfo

The serialized data.

context
StreamingContext

The context for serialization.

Exceptions

info is null.

Applies to