AuthenticationException 建構函式

定義

初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class.

多載

AuthenticationException()

不使用任何訊息,初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class with no message.

AuthenticationException(String)

使用指定的訊息初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class with the specified message.

AuthenticationException(SerializationInfo, StreamingContext)

初始化 AuthenticationException 類別的新執行個體,這個執行個體是來自 SerializationInfoStreamingContext 類別的指定執行個體。Initializes a new instance of the AuthenticationException class from the specified instances of the SerializationInfo and StreamingContext classes.

AuthenticationException(String, Exception)

使用指定的訊息和內部例外狀況初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class with the specified message and inner exception.

AuthenticationException()

不使用任何訊息,初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class with no message.

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

備註

此函式不會執行任何操作。This constructor does nothing.

AuthenticationException(String)

使用指定的訊息初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class with the specified message.

public:
 AuthenticationException(System::String ^ message);
public AuthenticationException (string message);
new System.Security.Authentication.AuthenticationException : string -> System.Security.Authentication.AuthenticationException
Public Sub New (message As String)

參數

message
String

描述驗證失敗的 StringA String that describes the authentication failure.

備註

這個函式會使用 message 參數中的文字,初始化 Message 屬性。This constructor initializes the Message property with the text in the message parameter. InnerException 屬性設定為 nullThe InnerException property is set to null.

另請參閱

AuthenticationException(SerializationInfo, StreamingContext)

初始化 AuthenticationException 類別的新執行個體,這個執行個體是來自 SerializationInfoStreamingContext 類別的指定執行個體。Initializes a new instance of the AuthenticationException class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 AuthenticationException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected AuthenticationException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Security.Authentication.AuthenticationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.AuthenticationException

參數

serializationInfo
SerializationInfo

SerializationInfo 執行個體,包含還原序列化新 AuthenticationException 執行個體時所需的資訊。A SerializationInfo instance that contains the information required to deserialize the new AuthenticationException instance.

streamingContext
StreamingContext

StreamingContext 執行個體。A StreamingContext instance.

另請參閱

AuthenticationException(String, Exception)

使用指定的訊息和內部例外狀況初始化 AuthenticationException 類別的新執行個體。Initializes a new instance of the AuthenticationException class with the specified message and inner exception.

public:
 AuthenticationException(System::String ^ message, Exception ^ innerException);
public AuthenticationException (string message, Exception innerException);
new System.Security.Authentication.AuthenticationException : string * Exception -> System.Security.Authentication.AuthenticationException
Public Sub New (message As String, innerException As Exception)

參數

message
String

描述驗證失敗的 StringA String that describes the authentication failure.

innerException
Exception

導致目前例外狀況的 ExceptionThe Exception that is the cause of the current exception.

備註

這個函式會使用 message 參數中的文字來初始化 Message 屬性,並使用 innerException 參數值來初始化 InnerException 屬性。This constructor initializes the Message property with the text in the message parameter and initializes the InnerException property with the innerException parameter value.

另請參閱

適用於