次の方法で共有


AuthenticationException コンストラクター

定義

AuthenticationException クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
AuthenticationException()

メッセージなしで、 AuthenticationException クラスの新しいインスタンスを初期化します。

AuthenticationException(String)

指定したメッセージを使用して、 AuthenticationException クラスの新しいインスタンスを初期化します。

AuthenticationException(SerializationInfo, StreamingContext)
古い.

SerializationInfoクラスとStreamingContext クラスの指定したインスタンスから、AuthenticationException クラスの新しいインスタンスを初期化します。

AuthenticationException(String, Exception)

指定したメッセージと内部例外を使用して、 AuthenticationException クラスの新しいインスタンスを初期化します。

AuthenticationException()

ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs

メッセージなしで、 AuthenticationException クラスの新しいインスタンスを初期化します。

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

注釈

このコンストラクターは何も行いません。

適用対象

AuthenticationException(String)

ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs

指定したメッセージを使用して、 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
String

認証エラーを説明する String

注釈

このコンストラクターは、message パラメーターのテキストを使用して、Message プロパティを初期化します。 InnerException プロパティが null に設定されている。

こちらもご覧ください

適用対象

AuthenticationException(SerializationInfo, StreamingContext)

ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs

注意事項

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

SerializationInfoクラスとStreamingContext クラスの指定したインスタンスから、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

新しいAuthenticationException インスタンスを逆シリアル化するために必要な情報を含むSerializationInfo インスタンス。

streamingContext
StreamingContext

StreamingContext インスタンス。

属性

こちらもご覧ください

適用対象

AuthenticationException(String, Exception)

ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs
ソース:
AuthenticationException.cs

指定したメッセージと内部例外を使用して、 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
String

認証エラーを説明する String

innerException
Exception

現在の例外の原因である Exception

注釈

このコンストラクターは、message パラメーター内のテキストを使用してMessage プロパティを初期化し、innerException パラメーター値を使用してInnerException プロパティを初期化します。

こちらもご覧ください

適用対象