ErrorResponseException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
ErrorResponseException()建構子會建立該ErrorResponseException類別的實例。
多載
| 名稱 | Description |
|---|---|
| ErrorResponseException() |
ErrorResponseException()建構子會建立該ErrorResponseException類別的實例。 |
| ErrorResponseException(DsmlErrorResponse) |
ErrorResponseException(DsmlErrorResponse)建構子會使用指定的回應物件建立該ErrorResponseException類別的實例。 客戶端預設顯示的訊息是「<errorResponse> returned」。 |
| 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> returned」。
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如果有的話,那就是例外。