Bewerken

Delen via


PrincipalOperationException Constructors

Definition

Instantiates a new instance of the PrincipalOperationException class.

Overloads

PrincipalOperationException()

Instantiates a new instance of the PrincipalOperationException class.

PrincipalOperationException(String)

Instantiates a new instance of the PrincipalOperationException class with the specified error message.

PrincipalOperationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the PrincipalOperationException class from the specified SerializationInfo and StreamingContext instances.

PrincipalOperationException(String, Exception)

Instantiates a new instance of the PrincipalOperationException class with the specified error message and specified nested exception.

PrincipalOperationException(String, Int32)

Instantiates a new instance of the PrincipalOperationException class with the specified error message and specified error code.

PrincipalOperationException(String, Exception, Int32)

Instantiates a new instance of the PrincipalOperationException class with the specified error message, the specified nested exception, and the specified error code.

PrincipalOperationException()

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalOperationException class.

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

Remarks

The parameterless constructor initializes a new instance of the PrincipalOperationException class. The Message property is initialized to a system-supplied message that describes the error. This message takes into account the current system culture. The InnerException property is initialized to null.

Applies to

PrincipalOperationException(String)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalOperationException class with the specified error message.

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)

Parameters

message
String

The text of the error message.

Remarks

The PrincipalOperationException instance is initialized with the Message property set to the value of message. If message is null, the Message property is initialized to a system-supplied message.

Applies to

PrincipalOperationException(SerializationInfo, StreamingContext)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Caution

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

Initializes a new instance of the PrincipalOperationException class from the specified SerializationInfo and StreamingContext instances.

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

Parameters

info
SerializationInfo

A SerializationInfo that contains the information required to serialize the new PrincipalOperationException.

context
StreamingContext

A StreamingContext that contains the source of the serialized stream that is associated with the new PrincipalOperationException.

Attributes

Applies to

PrincipalOperationException(String, Exception)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalOperationException class with the specified error message and specified nested exception.

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)

Parameters

message
String

The text of the error message.

innerException
Exception

A nested exception.

Remarks

The PrincipalOperationException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException. If message is null, the Message property is initialized to a system-supplied message. The InnerException is initialized to null.

Applies to

PrincipalOperationException(String, Int32)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalOperationException class with the specified error message and specified error code.

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)

Parameters

message
String

The text of the message.

errorCode
Int32

An error code.

Remarks

The PrincipalOperationException instance is initialized with the Message property set to the value of message and the ErrorCode property set to the value of errorCode. If message is null, the Message property is initialized to a system-supplied message.

Applies to

PrincipalOperationException(String, Exception, Int32)

Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs
Source:
exceptions.cs

Instantiates a new instance of the PrincipalOperationException class with the specified error message, the specified nested exception, and the specified error code.

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)

Parameters

message
String

The text of the message.

innerException
Exception

A nested exception.

errorCode
Int32

An error code.

Remarks

The PrincipalOperationException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException, and the ErrorCode is set to errorCode. If message is null, the Message property is initialized to a system-supplied message. The InnerException is initialized to null.

Applies to