DirectoryOperationException 构造函数
定义
DirectoryOperationException() 构造函数创建 DirectoryOperationException 类的实例。The DirectoryOperationException() constructor creates an instance of the DirectoryOperationException class.
重载
DirectoryOperationException()
DirectoryOperationException() 构造函数创建 DirectoryOperationException 类的实例。The DirectoryOperationException() constructor creates an instance of the DirectoryOperationException class.
public:
DirectoryOperationException();
public DirectoryOperationException ();
Public Sub New ()
适用于
DirectoryOperationException(DirectoryResponse)
DirectoryOperationException(DirectoryResponse) 构造函数使用指定的响应对象创建 DirectoryOperationException 类的实例。The DirectoryOperationException(DirectoryResponse) constructor creates an instance of the DirectoryOperationException class using the specified response object.
public:
DirectoryOperationException(System::DirectoryServices::Protocols::DirectoryResponse ^ response);
public DirectoryOperationException (System.DirectoryServices.Protocols.DirectoryResponse response);
new System.DirectoryServices.Protocols.DirectoryOperationException : System.DirectoryServices.Protocols.DirectoryResponse -> System.DirectoryServices.Protocols.DirectoryOperationException
Public Sub New (response As DirectoryResponse)
参数
- response
- DirectoryResponse
服务器返回的 DirectoryResponse 对象。The DirectoryResponse object returned by the server.
适用于
DirectoryOperationException(String)
DirectoryOperationException(String) 构造函数使用指定的消息创建 DirectoryOperationException 类的实例。The DirectoryOperationException(String) constructor creates an instance of the DirectoryOperationException class using the specified message.
public:
DirectoryOperationException(System::String ^ message);
public DirectoryOperationException (string message);
new System.DirectoryServices.Protocols.DirectoryOperationException : string -> System.DirectoryServices.Protocols.DirectoryOperationException
Public Sub New (message As String)
参数
- message
- String
引发异常时显示到客户端的消息。The message displayed to the client when the exception is thrown.
适用于
DirectoryOperationException(DirectoryResponse, String)
DirectoryOperationException(DirectoryResponse, String) 构造函数使用指定的响应对象和消息创建 DirectoryOperationException 对象的实例。The DirectoryOperationException(DirectoryResponse, String) constructor creates an instance of the DirectoryOperationException object using the specified response object and message.
public:
DirectoryOperationException(System::DirectoryServices::Protocols::DirectoryResponse ^ response, System::String ^ message);
public DirectoryOperationException (System.DirectoryServices.Protocols.DirectoryResponse response, string message);
new System.DirectoryServices.Protocols.DirectoryOperationException : System.DirectoryServices.Protocols.DirectoryResponse * string -> System.DirectoryServices.Protocols.DirectoryOperationException
Public Sub New (response As DirectoryResponse, message As String)
参数
- response
- DirectoryResponse
服务器返回的 DirectoryResponse 对象。The DirectoryResponse object returned by the server.
- message
- String
引发异常时显示到客户端的消息。The message displayed to the client when the exception is thrown.
适用于
DirectoryOperationException(SerializationInfo, StreamingContext)
DirectoryOperationException(SerializationInfo, StreamingContext) 构造函数使用指定的序列化信息和流上下文创建 DirectoryOperationException 类的实例。The DirectoryOperationException(SerializationInfo, StreamingContext) constructor creates an instance of the DirectoryOperationException class using the specified serialization information and streaming context.
protected:
DirectoryOperationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DirectoryOperationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.Protocols.DirectoryOperationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.DirectoryOperationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
序列化参数所需的数据。Data required to serialize the parameter.
- context
- StreamingContext
与该参数相关联的序列化流的源和目标。The source and destination of the serialized stream associated with the parameter.
适用于
DirectoryOperationException(String, Exception)
DirectoryOperationException(String, Exception) 构造函数使用指定的消息和内部异常创建 DirectoryOperationException 类的实例。The DirectoryOperationException(String, Exception) constructor creates an instance of the DirectoryOperationException class using the specified message and inner exception.
public:
DirectoryOperationException(System::String ^ message, Exception ^ inner);
public DirectoryOperationException (string message, Exception inner);
new System.DirectoryServices.Protocols.DirectoryOperationException : string * Exception -> System.DirectoryServices.Protocols.DirectoryOperationException
Public Sub New (message As String, inner As Exception)
参数
- message
- String
引发异常时显示到客户端的消息。The message displayed to the client when the exception is thrown.
- inner
- Exception
引发异常的 InnerException(如果有)。The InnerException, if any, that threw the exception.
适用于
DirectoryOperationException(DirectoryResponse, String, Exception)
DirectoryOperationException(DirectoryResponse, String, Exception) 构造函数使用指定的响应对象、消息和内部异常创建 DirectoryOperationException 类的实例。The DirectoryOperationException(DirectoryResponse, String, Exception) constructor creates an instance of the DirectoryOperationException class using the specified response object, message, and inner exception.
public:
DirectoryOperationException(System::DirectoryServices::Protocols::DirectoryResponse ^ response, System::String ^ message, Exception ^ inner);
public DirectoryOperationException (System.DirectoryServices.Protocols.DirectoryResponse response, string message, Exception inner);
new System.DirectoryServices.Protocols.DirectoryOperationException : System.DirectoryServices.Protocols.DirectoryResponse * string * Exception -> System.DirectoryServices.Protocols.DirectoryOperationException
Public Sub New (response As DirectoryResponse, message As String, inner As Exception)
参数
- response
- DirectoryResponse
服务器返回的 DirectoryResponse 对象。The DirectoryResponse object returned by the server.
- message
- String
引发异常时显示到客户端的消息。The message displayed to the client when the exception is thrown.
- inner
- Exception
引发异常的 InnerException(如果有)。The InnerException, if any, that threw the exception.