次の方法で共有


PasswordException コンストラクター

定義

PasswordException クラスの新しいインスタンスをインスタンス化します。

オーバーロード

名前 説明
PasswordException()

PasswordException クラスの新しいインスタンスをインスタンス化します。

PasswordException(String)

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

PasswordException(SerializationInfo, StreamingContext)
古い.

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

PasswordException(String, Exception)

指定したエラー メッセージと指定した入れ子になった例外を使用して、 PasswordException クラスの新しいインスタンスをインスタンス化します。

PasswordException()

ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs

PasswordException クラスの新しいインスタンスをインスタンス化します。

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

注釈

パラメーターなしのコンストラクターは、 PasswordException クラスの新しいインスタンスを初期化します。 Message プロパティは、エラーを説明するシステム指定のメッセージに初期化されます。 このメッセージでは、現在のシステム カルチャが考慮されます。 InnerException プロパティは、nullに初期化されます。

適用対象

PasswordException(String)

ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs

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

public:
 PasswordException(System::String ^ message);
public PasswordException(string message);
new System.DirectoryServices.AccountManagement.PasswordException : string -> System.DirectoryServices.AccountManagement.PasswordException
Public Sub New (message As String)

パラメーター

message
String

エラー メッセージのテキスト。

注釈

PasswordException インスタンスは、Message プロパティを message の値に設定して初期化されます。 messagenullされている場合、Message プロパティはシステム指定のメッセージに初期化されます。

適用対象

PasswordException(SerializationInfo, StreamingContext)

ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs

注意事項

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

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

protected:
 PasswordException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 PasswordException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected PasswordException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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.DirectoryServices.AccountManagement.PasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PasswordException
new System.DirectoryServices.AccountManagement.PasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PasswordException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

パラメーター

info
SerializationInfo

新しいPasswordExceptionをシリアル化するために必要な情報を含むSerializationInfo

context
StreamingContext

新しいPasswordExceptionに関連付けられているシリアル化されたストリームのソースを含むStreamingContext

属性

適用対象

PasswordException(String, Exception)

ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs
ソース:
exceptions.cs

指定したエラー メッセージと指定した入れ子になった例外を使用して、 PasswordException クラスの新しいインスタンスをインスタンス化します。

public:
 PasswordException(System::String ^ message, Exception ^ innerException);
public PasswordException(string message, Exception innerException);
new System.DirectoryServices.AccountManagement.PasswordException : string * Exception -> System.DirectoryServices.AccountManagement.PasswordException
Public Sub New (message As String, innerException As Exception)

パラメーター

message
String

エラー メッセージのテキスト。

innerException
Exception

入れ子になった例外。

注釈

PasswordException インスタンスは、Message プロパティを message の値に設定し、InnerException プロパティを innerException の値に設定して初期化します。 messagenullされている場合、Message プロパティはシステム指定のメッセージに初期化されます。 InnerExceptionは、nullに初期化されます。

適用対象