ErrorResponseException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
构造 ErrorResponseException() 函数创建类的 ErrorResponseException 实例。
重载
| 名称 | 说明 |
|---|---|
| ErrorResponseException() |
构造 ErrorResponseException() 函数创建类的 ErrorResponseException 实例。 |
| ErrorResponseException(DsmlErrorResponse) |
构造 ErrorResponseException(DsmlErrorResponse) 函数使用指定的响应对象创建类的 ErrorResponseException 实例。 显示给客户端的默认消息是“<errorResponse> 返回”。 |
| ErrorResponseException(String) |
构造 ErrorResponseException(String) 函数使用指定的消息创建类的 ErrorResponseException 实例。 |
| ErrorResponseException(DsmlErrorResponse, String) |
构造 ErrorResponseException(DsmlErrorResponse, String) 函数使用指定的响应对象和消息创建类的 ErrorResponseException 实例。 |
| ErrorResponseException(SerializationInfo, StreamingContext) |
构造 ErrorResponseException(SerializationInfo, StreamingContext) 函数使用指定的序列化数据和流式处理上下文创建类的 ErrorResponseException 实例。 |
| ErrorResponseException(String, Exception) |
构造 ErrorResponseException(String, Exception) 函数使用指定的消息和内部异常创建类的 ErrorResponseException 实例。 |
| ErrorResponseException(DsmlErrorResponse, String, Exception) |
构造 ErrorResponseException(DsmlErrorResponse, String, Exception) 函数使用指定的响应对象、消息和内部异常创建类的 ErrorResponseException 实例。 |
ErrorResponseException()
构造 ErrorResponseException() 函数创建类的 ErrorResponseException 实例。
public:
ErrorResponseException();
public ErrorResponseException();
Public Sub New ()
适用于
ErrorResponseException(DsmlErrorResponse)
构造 ErrorResponseException(DsmlErrorResponse) 函数使用指定的响应对象创建类的 ErrorResponseException 实例。 显示给客户端的默认消息是“<errorResponse> 返回”。
public:
ErrorResponseException(System::DirectoryServices::Protocols::DsmlErrorResponse ^ response);
public ErrorResponseException(System.DirectoryServices.Protocols.DsmlErrorResponse response);
new System.DirectoryServices.Protocols.ErrorResponseException : System.DirectoryServices.Protocols.DsmlErrorResponse -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (response As DsmlErrorResponse)
参数
- response
- DsmlErrorResponse
DsmlErrorResponse与 .. 对应的<errorResponse>服务器返回的对象。
适用于
ErrorResponseException(String)
构造 ErrorResponseException(String) 函数使用指定的消息创建类的 ErrorResponseException 实例。
public:
ErrorResponseException(System::String ^ message);
public ErrorResponseException(string message);
new System.DirectoryServices.Protocols.ErrorResponseException : string -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (message As String)
参数
- message
- String
发生异常时向客户端显示的消息。
适用于
ErrorResponseException(DsmlErrorResponse, String)
构造 ErrorResponseException(DsmlErrorResponse, String) 函数使用指定的响应对象和消息创建类的 ErrorResponseException 实例。
public:
ErrorResponseException(System::DirectoryServices::Protocols::DsmlErrorResponse ^ response, System::String ^ message);
public ErrorResponseException(System.DirectoryServices.Protocols.DsmlErrorResponse response, string message);
new System.DirectoryServices.Protocols.ErrorResponseException : System.DirectoryServices.Protocols.DsmlErrorResponse * string -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (response As DsmlErrorResponse, message As String)
参数
- response
- DsmlErrorResponse
DsmlErrorResponse与 .. 对应的<errorResponse>服务器返回的对象。
- message
- String
发生异常时向客户端显示的消息。
适用于
ErrorResponseException(SerializationInfo, StreamingContext)
构造 ErrorResponseException(SerializationInfo, StreamingContext) 函数使用指定的序列化数据和流式处理上下文创建类的 ErrorResponseException 实例。
protected:
ErrorResponseException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ErrorResponseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.DirectoryServices.Protocols.ErrorResponseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.ErrorResponseException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
序列化参数所需的数据。
- context
- StreamingContext
与参数关联的序列化流的源和目标。
适用于
ErrorResponseException(String, Exception)
构造 ErrorResponseException(String, Exception) 函数使用指定的消息和内部异常创建类的 ErrorResponseException 实例。
public:
ErrorResponseException(System::String ^ message, Exception ^ inner);
public ErrorResponseException(string message, Exception inner);
new System.DirectoryServices.Protocols.ErrorResponseException : string * Exception -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (message As String, inner As Exception)
参数
- message
- String
发生异常时向客户端显示的消息。
- inner
- Exception
如果 InnerException存在,则引发异常。
适用于
ErrorResponseException(DsmlErrorResponse, String, Exception)
构造 ErrorResponseException(DsmlErrorResponse, String, Exception) 函数使用指定的响应对象、消息和内部异常创建类的 ErrorResponseException 实例。
public:
ErrorResponseException(System::DirectoryServices::Protocols::DsmlErrorResponse ^ response, System::String ^ message, Exception ^ inner);
public ErrorResponseException(System.DirectoryServices.Protocols.DsmlErrorResponse response, string message, Exception inner);
new System.DirectoryServices.Protocols.ErrorResponseException : System.DirectoryServices.Protocols.DsmlErrorResponse * string * Exception -> System.DirectoryServices.Protocols.ErrorResponseException
Public Sub New (response As DsmlErrorResponse, message As String, inner As Exception)
参数
- response
- DsmlErrorResponse
DsmlErrorResponse与 .. 对应的<errorResponse>服务器返回的对象。
- message
- String
发生异常时向客户端显示的消息。
- inner
- Exception
如果 InnerException存在,则引发异常。