Language

PrincipalOperationException コンストラクター

定義

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

オーバーロード

Name 説明
PrincipalOperationException()

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

PrincipalOperationException(String)

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

PrincipalOperationException(SerializationInfo, StreamingContext)
古い.

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

PrincipalOperationException(String, Exception)

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

PrincipalOperationException(String, Int32)

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

PrincipalOperationException(String, Exception, Int32)

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

PrincipalOperationException()

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

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

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

注釈

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

適用対象

PrincipalOperationException(String)

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

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

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

パラメーター

message
String

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

注釈

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

適用対象

PrincipalOperationException(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.

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

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

パラメーター

info
SerializationInfo

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

context
StreamingContext

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

属性

適用対象

PrincipalOperationException(String, Exception)

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

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

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

パラメーター

message
String

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

innerException
Exception

入れ子になった例外。

注釈

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

適用対象

PrincipalOperationException(String, Int32)

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

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

public:
 PrincipalOperationException(System::String ^ message, int errorCode);
public PrincipalOperationException(string message, int errorCode);
new System.DirectoryServices.AccountManagement.PrincipalOperationException : string * int -> System.DirectoryServices.AccountManagement.PrincipalOperationException
Public Sub New (message As String, errorCode As Integer)

パラメーター

message
String

メッセージのテキスト。

errorCode
Int32

エラー コードです。

注釈

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

適用対象

PrincipalOperationException(String, Exception, Int32)

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

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

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

パラメーター

message
String

メッセージのテキスト。

innerException
Exception

入れ子になった例外。

errorCode
Int32

エラー コードです。

注釈

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

適用対象