DirectoryException Constructors

Definition

The DirectoryException() constructor creates an instance of the DirectoryException class.

Overloads

DirectoryException()

The DirectoryException() constructor creates an instance of the DirectoryException class.

DirectoryException(String)

The DirectoryException(String) constructor creates an instance of the DirectoryException class using the specified parameter.

DirectoryException(SerializationInfo, StreamingContext)

The DirectoryException(SerializationInfo, StreamingContext) constructor creates an instance of the DirectoryException class using the specified serialization information and streaming contextual information.

DirectoryException(String, Exception)

The DirectoryException(String, Exception) constructor creates an instance of the DirectoryException class using the specified parameters.

DirectoryException()

The DirectoryException() constructor creates an instance of the DirectoryException class.

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

DirectoryException(String)

The DirectoryException(String) constructor creates an instance of the DirectoryException class using the specified parameter.

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

Parameters

message
String

The message displayed to the client when the exception is thrown.

DirectoryException(SerializationInfo, StreamingContext)

The DirectoryException(SerializationInfo, StreamingContext) constructor creates an instance of the DirectoryException class using the specified serialization information and streaming contextual information.

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

Parameters

info
SerializationInfo

The serialized object data about the exception being thrown.

context
StreamingContext

The contextual information about the source or destination.

DirectoryException(String, Exception)

The DirectoryException(String, Exception) constructor creates an instance of the DirectoryException class using the specified parameters.

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

Parameters

message
String

The message displayed to the client when the exception is thrown.

inner
Exception

The InnerException, if any, that threw the exception.

Applies to