DirectoryOperationException Constructors

Definition

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

Overloads

DirectoryOperationException()

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

DirectoryOperationException(DirectoryResponse)

The DirectoryOperationException(DirectoryResponse) constructor creates an instance of the DirectoryOperationException class using the specified response object.

DirectoryOperationException(String)

The DirectoryOperationException(String) constructor creates an instance of the DirectoryOperationException class using the specified message.

DirectoryOperationException(DirectoryResponse, String)

The DirectoryOperationException(DirectoryResponse, String) constructor creates an instance of the DirectoryOperationException object using the specified response object and message.

DirectoryOperationException(SerializationInfo, StreamingContext)
Obsolete.

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

DirectoryOperationException(String, Exception)

The DirectoryOperationException(String, Exception) constructor creates an instance of the DirectoryOperationException class using the specified message and inner exception.

DirectoryOperationException(DirectoryResponse, String, Exception)

The DirectoryOperationException(DirectoryResponse, String, Exception) constructor creates an instance of the DirectoryOperationException class using the specified response object, message, and inner exception.

DirectoryOperationException()

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

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

C#
public DirectoryOperationException();

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryOperationException(DirectoryResponse)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

The DirectoryOperationException(DirectoryResponse) constructor creates an instance of the DirectoryOperationException class using the specified response object.

C#
public DirectoryOperationException(System.DirectoryServices.Protocols.DirectoryResponse response);

Parameters

response
DirectoryResponse

The DirectoryResponse object returned by the server.

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryOperationException(String)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

The DirectoryOperationException(String) constructor creates an instance of the DirectoryOperationException class using the specified message.

C#
public DirectoryOperationException(string message);

Parameters

message
String

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

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryOperationException(DirectoryResponse, String)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

The DirectoryOperationException(DirectoryResponse, String) constructor creates an instance of the DirectoryOperationException object using the specified response object and message.

C#
public DirectoryOperationException(System.DirectoryServices.Protocols.DirectoryResponse response, string message);

Parameters

response
DirectoryResponse

The DirectoryResponse object returned by the server.

message
String

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

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryOperationException(SerializationInfo, StreamingContext)

Source:
DirectoryException.cs
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 DirectoryOperationException(SerializationInfo, StreamingContext) constructor creates an instance of the DirectoryOperationException class using the specified serialization information and streaming context.

C#
[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 DirectoryOperationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
C#
protected DirectoryOperationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

Data required to serialize the parameter.

context
StreamingContext

The source and destination of the serialized stream associated with the parameter.

Attributes

Applies to

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie (Zastarané)
.NET (8 (package-provided), 9 (package-provided), 10 (package-provided))
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryOperationException(String, Exception)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

The DirectoryOperationException(String, Exception) constructor creates an instance of the DirectoryOperationException class using the specified message and inner exception.

C#
public DirectoryOperationException(string message, Exception inner);

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

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

DirectoryOperationException(DirectoryResponse, String, Exception)

Source:
DirectoryException.cs
Source:
DirectoryException.cs
Source:
DirectoryException.cs

The DirectoryOperationException(DirectoryResponse, String, Exception) constructor creates an instance of the DirectoryOperationException class using the specified response object, message, and inner exception.

C#
public DirectoryOperationException(System.DirectoryServices.Protocols.DirectoryResponse response, string message, Exception inner);

Parameters

response
DirectoryResponse

The DirectoryResponse object returned by the server.

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

.NET 10 (package-provided) a ďalšie verzie
Produkt Verzie
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)