ErrorResponseException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
ErrorResponseException() 建構函式會建立 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 (如果有的話)。