Upravit

Sdílet prostřednictvím


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)
Obsolete.

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()

Source:
DirectoryException.cs
Source:
DirectoryException.cs

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

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

Applies to

DirectoryException(String)

Source:
DirectoryException.cs
Source:
DirectoryException.cs

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.

Applies to

DirectoryException(SerializationInfo, StreamingContext)

Source:
DirectoryException.cs
Source:
DirectoryException.cs

Caution

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

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);
[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 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
[<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.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.

Attributes

Applies to

DirectoryException(String, Exception)

Source:
DirectoryException.cs
Source:
DirectoryException.cs

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