LdapException 建構函式

定義

LdapException() 建構函式會建立 LdapException 類別的執行個體。

多載

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.cs
來源:
LdapException.cs
來源:
LdapException.cs

LdapException() 建構函式會建立 LdapException 類別的執行個體。

public:
 LdapException();
public LdapException ();
Public Sub New ()

適用於

LdapException(Int32)

來源:
LdapException.cs
來源:
LdapException.cs
來源:
LdapException.cs

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.cs
來源:
LdapException.cs
來源:
LdapException.cs

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.cs
來源:
LdapException.cs
來源:
LdapException.cs

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)

來源:
LdapException.cs
來源:
LdapException.cs
來源:
LdapException.cs

警告

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);
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);
new System.DirectoryServices.Protocols.LdapException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.Protocols.LdapException
[<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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

序列化參數所需的資料。

context
StreamingContext

與參數相關聯之序列化資料流的來源和目的端。

屬性

適用於

LdapException(String, Exception)

來源:
LdapException.cs
來源:
LdapException.cs
來源:
LdapException.cs

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.cs
來源:
LdapException.cs
來源:
LdapException.cs

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.cs
來源:
LdapException.cs
來源:
LdapException.cs

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 伺服器錯誤訊息。

適用於