ActiveDirectoryOperationException Constructors

Definition

Initializes a new instance of the ActiveDirectoryOperationException class.

Overloads

ActiveDirectoryOperationException()

Initializes a new instance of the ActiveDirectoryOperationException class.

ActiveDirectoryOperationException(String)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message.

ActiveDirectoryOperationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the ActiveDirectoryOperationException class, using the specified serialization information and streaming context.

ActiveDirectoryOperationException(String, Exception)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message and an underlying exception object.

ActiveDirectoryOperationException(String, Int32)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message and a specified error code.

ActiveDirectoryOperationException(String, Exception, Int32)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message, an underlying exception object, and a specified error code.

ActiveDirectoryOperationException()

Initializes a new instance of the ActiveDirectoryOperationException class.

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

See also

Applies to

ActiveDirectoryOperationException(String)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message.

public:
 ActiveDirectoryOperationException(System::String ^ message);
public ActiveDirectoryOperationException (string message);
public ActiveDirectoryOperationException (string? message);
new System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException : string -> System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
Public Sub New (message As String)

Parameters

message
String

A message that describes the error.

See also

Applies to

ActiveDirectoryOperationException(SerializationInfo, StreamingContext)

Caution

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

Initializes a new instance of the ActiveDirectoryOperationException class, using the specified serialization information and streaming context.

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

Parameters

info
SerializationInfo

The SerializationInfo object for the exception.

context
StreamingContext

The StreamingContext object for the exception.

Attributes

See also

Applies to

ActiveDirectoryOperationException(String, Exception)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message and an underlying exception object.

public:
 ActiveDirectoryOperationException(System::String ^ message, Exception ^ inner);
public ActiveDirectoryOperationException (string message, Exception inner);
public ActiveDirectoryOperationException (string? message, Exception? inner);
new System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException : string * Exception -> System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

A message that describes the error.

inner
Exception

An Exception object that contains underlying exception information.

See also

Applies to

ActiveDirectoryOperationException(String, Int32)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message and a specified error code.

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

Parameters

message
String

A message that describes the error.

errorCode
Int32

An error code that identifies the error.

See also

Applies to

ActiveDirectoryOperationException(String, Exception, Int32)

Initializes a new instance of the ActiveDirectoryOperationException class with a specified error message, an underlying exception object, and a specified error code.

public:
 ActiveDirectoryOperationException(System::String ^ message, Exception ^ inner, int errorCode);
public ActiveDirectoryOperationException (string message, Exception inner, int errorCode);
public ActiveDirectoryOperationException (string? message, Exception? inner, int errorCode);
new System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException : string * Exception * int -> System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException
Public Sub New (message As String, inner As Exception, errorCode As Integer)

Parameters

message
String

A message that describes the error.

inner
Exception

An Exception object that contains underlying exception information.

errorCode
Int32

An error code that identifies the error.

See also

Applies to