AuthenticationException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 AuthenticationException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| AuthenticationException() |
初始化一個新實例, AuthenticationException 且無訊息。 |
| AuthenticationException(String) |
初始化一個新的類別實例 AuthenticationException ,並以指定訊息進行。 |
| AuthenticationException(SerializationInfo, StreamingContext) |
已淘汰.
從指定的 和 StreamingContext 類別實例SerializationInfo中初始化該AuthenticationException類別的新實例。 |
| AuthenticationException(String, Exception) |
初始化類別的新實例 AuthenticationException ,並帶有指定的訊息與內部例外。 |
AuthenticationException()
初始化一個新實例, AuthenticationException 且無訊息。
public:
AuthenticationException();
public AuthenticationException();
Public Sub New ()
備註
這個建構器什麼都不做。
適用於
AuthenticationException(String)
初始化一個新的類別實例 AuthenticationException ,並以指定訊息進行。
public:
AuthenticationException(System::String ^ message);
public AuthenticationException(string? message);
public AuthenticationException(string message);
new System.Security.Authentication.AuthenticationException : string -> System.Security.Authentication.AuthenticationException
Public Sub New (message As String)
參數
備註
此建構子以參數中的message文字初始化該Message性質。
InnerException 屬性會設定為 null。
另請參閱
適用於
AuthenticationException(SerializationInfo, StreamingContext)
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
從指定的 和 StreamingContext 類別實例SerializationInfo中初始化該AuthenticationException類別的新實例。
protected:
AuthenticationException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected AuthenticationException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected AuthenticationException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Authentication.AuthenticationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.AuthenticationException
new System.Security.Authentication.AuthenticationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.AuthenticationException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
參數
- serializationInfo
- SerializationInfo
一個 SerializationInfo 包含反序列 AuthenticationException 化新實例所需資訊的實例。
- streamingContext
- StreamingContext
- 屬性
另請參閱
適用於
AuthenticationException(String, Exception)
初始化類別的新實例 AuthenticationException ,並帶有指定的訊息與內部例外。
public:
AuthenticationException(System::String ^ message, Exception ^ innerException);
public AuthenticationException(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化屬性,並以innerException參數值初始化屬性InnerException。message