Edit

Bagikan melalui


SecurityTokenException Constructors

Definition

Initializes a new instance of the SecurityTokenException class.

Overloads

SecurityTokenException()

Initializes a new instance of the SecurityTokenException class.

SecurityTokenException(String)

Initializes a new instance of the SecurityTokenException class using the specified error message.

SecurityTokenException(SerializationInfo, StreamingContext)

Initializes a new instance of the SecurityTokenException class using the specified XML serialization data and contextual data about the source and destination of the serialization stream.

SecurityTokenException(String, Exception)

Initializes a new instance of the SecurityTokenException class using the specified error message and root cause of the error.

SecurityTokenException()

Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs

Initializes a new instance of the SecurityTokenException class.

public:
 SecurityTokenException();
public SecurityTokenException ();
Public Sub New ()

Applies to

SecurityTokenException(String)

Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs

Initializes a new instance of the SecurityTokenException class using the specified error message.

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

Parameters

message
String

A message that identifies the reason the exception occurred.

Applies to

SecurityTokenException(SerializationInfo, StreamingContext)

Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs

Initializes a new instance of the SecurityTokenException class using the specified XML serialization data and contextual data about the source and destination of the serialization stream.

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

Parameters

info
SerializationInfo

A SerializationInfo that contains values that are used during serialization and deserialization.

context
StreamingContext

A SecurityTokenException that contains data about the source and destination of the serialization stream.

Applies to

SecurityTokenException(String, Exception)

Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs
Source:
SecurityTokenException.cs

Initializes a new instance of the SecurityTokenException class using the specified error message and root cause of the error.

public:
 SecurityTokenException(System::String ^ message, Exception ^ innerException);
public SecurityTokenException (string message, Exception innerException);
new System.IdentityModel.Tokens.SecurityTokenException : string * Exception -> System.IdentityModel.Tokens.SecurityTokenException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

A message that identifies the reason the exception occurred.

innerException
Exception

A Exception that represents the root cause of the exception.

Applies to