LdapException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
LdapException()建構子會建立該LdapException類別的實例。
多載
| 名稱 | Description |
|---|---|
| LdapException() |
LdapException()建構子會建立該LdapException類別的實例。 |
| LdapException(Int32) |
LdapException(Int32)建構子會使用指定的錯誤碼建立該LdapException類別的實例。 用戶端預設顯示的訊息是「與 LDAP 伺服器的通訊錯誤」。 |
| LdapException(String) |
LdapException(String)建構子會使用指定的訊息建立該LdapException類別的實例。 |
| LdapException(Int32, String) |
LdapException(Int32, String)建構子會使用指定的錯誤代碼和訊息來建立該LdapException類別的實例。 |
| LdapException(SerializationInfo, StreamingContext) |
已淘汰.
建構子會 LdapException(SerializationInfo, StreamingContext) 利用指定的序列化資料和串流上下文建立該 LdapException 類別的實例。 |
| LdapException(String, Exception) |
LdapException(String, Exception)建構子會利用指定的訊息和內部例外建立該LdapException類別的實例。 |
| LdapException(Int32, String, Exception) |
LdapException(Int32, String, Exception)建構子會利用指定的錯誤碼、訊息和內部例外來建立該LdapException類別的實例。 |
| LdapException(Int32, String, String) |
LdapException(Int32, String, String)建構子會根據指定的錯誤碼、訊息和 LDAP 伺服器錯誤訊息建立該LdapException類別的實例。 |
LdapException()
LdapException()建構子會建立該LdapException類別的實例。
public:
LdapException();
public LdapException();
Public Sub New ()
適用於
LdapException(Int32)
LdapException(Int32)建構子會使用指定的錯誤碼建立該LdapException類別的實例。 用戶端預設顯示的訊息是「與 LDAP 伺服器的通訊錯誤」。
public:
LdapException(int errorCode);
public LdapException(int errorCode);
new System.DirectoryServices.Protocols.LdapException : int -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer)
參數
- errorCode
- Int32
錯誤代碼由 LDAP 實作回傳。
適用於
LdapException(String)
LdapException(String)建構子會使用指定的訊息建立該LdapException類別的實例。
public:
LdapException(System::String ^ message);
public LdapException(string message);
new System.DirectoryServices.Protocols.LdapException : string -> System.DirectoryServices.Protocols.LdapException
Public Sub New (message As String)
參數
- message
- String
當例外發生時,該訊息會顯示給客戶端。
適用於
LdapException(Int32, String)
LdapException(Int32, String)建構子會使用指定的錯誤代碼和訊息來建立該LdapException類別的實例。
public:
LdapException(int errorCode, System::String ^ message);
public LdapException(int errorCode, string message);
new System.DirectoryServices.Protocols.LdapException : int * string -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer, message As String)
參數
- errorCode
- Int32
錯誤代碼由 LDAP 實作回傳。
- message
- String
當例外發生時,該訊息會顯示給客戶端。
適用於
LdapException(SerializationInfo, StreamingContext)
警告
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
建構子會 LdapException(SerializationInfo, StreamingContext) 利用指定的序列化資料和串流上下文建立該 LdapException 類別的實例。
protected:
LdapException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 LdapException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected LdapException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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}")>]
new System.DirectoryServices.Protocols.LdapException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.LdapException
new System.DirectoryServices.Protocols.LdapException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.LdapException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
參數
- info
- SerializationInfo
序列化參數所需的資料。
- context
- StreamingContext
與參數相關的序列化串流的來源與目的地。
- 屬性
適用於
LdapException(String, Exception)
LdapException(String, Exception)建構子會利用指定的訊息和內部例外建立該LdapException類別的實例。
public:
LdapException(System::String ^ message, Exception ^ inner);
public LdapException(string message, Exception inner);
new System.DirectoryServices.Protocols.LdapException : string * Exception -> System.DirectoryServices.Protocols.LdapException
Public Sub New (message As String, inner As Exception)
參數
- message
- String
當例外發生時,該訊息會顯示給客戶端。
- inner
- Exception
如果有的話,是那個內在例外,那就是那個例外。
適用於
LdapException(Int32, String, Exception)
LdapException(Int32, String, Exception)建構子會利用指定的錯誤碼、訊息和內部例外來建立該LdapException類別的實例。
public:
LdapException(int errorCode, System::String ^ message, Exception ^ inner);
public LdapException(int errorCode, string message, Exception inner);
new System.DirectoryServices.Protocols.LdapException : int * string * Exception -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer, message As String, inner As Exception)
參數
- errorCode
- Int32
錯誤代碼由 LDAP 實作回傳。
- message
- String
當例外發生時,該訊息會顯示給客戶端。
- inner
- Exception
如果有的話,是那個內在例外,那就是那個例外。
適用於
LdapException(Int32, String, String)
LdapException(Int32, String, String)建構子會根據指定的錯誤碼、訊息和 LDAP 伺服器錯誤訊息建立該LdapException類別的實例。
public:
LdapException(int errorCode, System::String ^ message, System::String ^ serverErrorMessage);
public LdapException(int errorCode, string message, string serverErrorMessage);
new System.DirectoryServices.Protocols.LdapException : int * string * string -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer, message As String, serverErrorMessage As String)
參數
- errorCode
- Int32
錯誤代碼由 LDAP 實作回傳。
- message
- String
當例外發生時,該訊息會顯示給客戶端。
- serverErrorMessage
- String
LDAP 伺服器錯誤訊息。