DirectoryServicesCOMException Constructors

Definition

Initializes a new instance of the DirectoryServicesCOMException class.

Overloads

DirectoryServicesCOMException()

Initializes a new instance of the DirectoryServicesCOMException class.

DirectoryServicesCOMException(String)

Initializes a new instance of the DirectoryServicesCOMException class with the specified string.

DirectoryServicesCOMException(SerializationInfo, StreamingContext)

Initializes a new instance of the DirectoryServicesCOMException class with the specified serialization information and streaming context.

DirectoryServicesCOMException(String, Exception)

Initializes a new instance of the DirectoryServicesCOMException class with the specified string and exception.

DirectoryServicesCOMException()

Initializes a new instance of the DirectoryServicesCOMException class.

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

DirectoryServicesCOMException(String)

Initializes a new instance of the DirectoryServicesCOMException class with the specified string.

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

Parameters

message
String

The message that describes the error.

DirectoryServicesCOMException(SerializationInfo, StreamingContext)

Initializes a new instance of the DirectoryServicesCOMException class with the specified serialization information and streaming context.

protected:
 DirectoryServicesCOMException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DirectoryServicesCOMException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.DirectoryServicesCOMException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.DirectoryServicesCOMException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo to populate with data.

context
StreamingContext

The StreamingContext destination for this serialization.

DirectoryServicesCOMException(String, Exception)

Initializes a new instance of the DirectoryServicesCOMException class with the specified string and exception.

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

Parameters

message
String

The message that describes the error.

inner
Exception

The exception that is the cause of the current exception.

Applies to