LdapException Construtores

Definição

O construtor LdapException() cria uma instância da classe LdapException.The LdapException() constructor creates an instance of the LdapException class.

Sobrecargas

LdapException()

O construtor LdapException() cria uma instância da classe LdapException.The LdapException() constructor creates an instance of the LdapException class.

LdapException(Int32)

O construtor LdapException(Int32) cria uma instância da classe LdapException usando o código de erro especificado.The LdapException(Int32) constructor creates an instance of the LdapException class using the specified error code. A mensagem padrão exibida para o cliente é "Erro de comunicação com o servidor LDAP".The default message displayed to the client is "Communications error with the LDAP server".

LdapException(String)

O construtor LdapException(String) cria uma instância da classe LdapException usando a mensagem especificada.The LdapException(String) constructor creates an instance of the LdapException class using the specified message.

LdapException(Int32, String)

O construtor LdapException(Int32, String) cria uma instância da classe LdapException usando a mensagem e o código de erro especificado.The LdapException(Int32, String) constructor creates an instance of the LdapException class using the specified error code and message.

LdapException(SerializationInfo, StreamingContext)

O construtor LdapException(SerializationInfo, StreamingContext) cria uma instância da classe LdapException usando os dados de serialização e o contexto de streaming especificados.The LdapException(SerializationInfo, StreamingContext) constructor creates an instance of the LdapException class using the specified serialization data and streaming context.

LdapException(String, Exception)

O construtor LdapException(String, Exception) cria uma instância da classe LdapException usando a mensagem especificada e a exceção interna.The LdapException(String, Exception) constructor creates an instance of the LdapException class using the specified message and inner exception.

LdapException(Int32, String, Exception)

O construtor LdapException(Int32, String, Exception) cria uma instância da classe LdapException usando o código de erro, a mensagem e a exceção interna especificados.The LdapException(Int32, String, Exception) constructor creates an instance of the LdapException class using the specified error code, message, and inner exception.

LdapException(Int32, String, String)

O construtor LdapException(Int32, String, String) cria uma instância da classe LdapException usando o código de erro, a mensagem e a mensagem de erro de servidor LDAP especificados.The LdapException(Int32, String, String) constructor creates an instance of the LdapException class using the specified error code, message, and LDAP server error message.

LdapException()

O construtor LdapException() cria uma instância da classe LdapException.The LdapException() constructor creates an instance of the LdapException class.

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

Aplica-se a

LdapException(Int32)

O construtor LdapException(Int32) cria uma instância da classe LdapException usando o código de erro especificado.The LdapException(Int32) constructor creates an instance of the LdapException class using the specified error code. A mensagem padrão exibida para o cliente é "Erro de comunicação com o servidor LDAP".The default message displayed to the client is "Communications error with the LDAP server".

public:
 LdapException(int errorCode);
public LdapException (int errorCode);
new System.DirectoryServices.Protocols.LdapException : int -> System.DirectoryServices.Protocols.LdapException
Public Sub New (errorCode As Integer)

Parâmetros

errorCode
Int32

O código de erro retornado pela implementação de LDAP.The error code returned by the LDAP implementation.

Aplica-se a

LdapException(String)

O construtor LdapException(String) cria uma instância da classe LdapException usando a mensagem especificada.The LdapException(String) constructor creates an instance of the LdapException class using the specified message.

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)

Parâmetros

message
String

A mensagem exibida para o cliente quando a exceção ocorre.The message displayed to the client when the exception occurs.

Aplica-se a

LdapException(Int32, String)

O construtor LdapException(Int32, String) cria uma instância da classe LdapException usando a mensagem e o código de erro especificado.The LdapException(Int32, String) constructor creates an instance of the LdapException class using the specified error code and message.

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)

Parâmetros

errorCode
Int32

O código de erro retornado pela implementação de LDAP.The error code returned by the LDAP implementation.

message
String

A mensagem exibida para o cliente quando a exceção ocorre.The message displayed to the client when the exception occurs.

Aplica-se a

LdapException(SerializationInfo, StreamingContext)

O construtor LdapException(SerializationInfo, StreamingContext) cria uma instância da classe LdapException usando os dados de serialização e o contexto de streaming especificados.The LdapException(SerializationInfo, StreamingContext) constructor creates an instance of the LdapException class using the specified serialization data and streaming context.

protected:
 LdapException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
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
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parâmetros

info
SerializationInfo

Dados necessários para serializar o parâmetro.Data required to serialize the parameter.

context
StreamingContext

A origem e o destino do fluxo serializado associado ao parâmetro.The source and destination of the serialized stream associated with the parameter.

Aplica-se a

LdapException(String, Exception)

O construtor LdapException(String, Exception) cria uma instância da classe LdapException usando a mensagem especificada e a exceção interna.The LdapException(String, Exception) constructor creates an instance of the LdapException class using the specified message and inner exception.

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)

Parâmetros

message
String

A mensagem exibida para o cliente quando a exceção ocorre.The message displayed to the client when the exception occurs.

inner
Exception

A exceção interna, se houver, que gerou a exceção.The inner exception, if any, that threw the exception.

Aplica-se a

LdapException(Int32, String, Exception)

O construtor LdapException(Int32, String, Exception) cria uma instância da classe LdapException usando o código de erro, a mensagem e a exceção interna especificados.The LdapException(Int32, String, Exception) constructor creates an instance of the LdapException class using the specified error code, message, and inner exception.

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)

Parâmetros

errorCode
Int32

O código de erro retornado pela implementação de LDAP.The error code returned by the LDAP implementation.

message
String

A mensagem exibida para o cliente quando a exceção ocorre.The message displayed to the client when the exception occurs.

inner
Exception

A exceção interna, se houver, que gerou a exceção.The inner exception, if any, that threw the exception.

Aplica-se a

LdapException(Int32, String, String)

O construtor LdapException(Int32, String, String) cria uma instância da classe LdapException usando o código de erro, a mensagem e a mensagem de erro de servidor LDAP especificados.The LdapException(Int32, String, String) constructor creates an instance of the LdapException class using the specified error code, message, and LDAP server error message.

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)

Parâmetros

errorCode
Int32

O código de erro retornado pela implementação de LDAP.The error code returned by the LDAP implementation.

message
String

A mensagem exibida para o cliente quando a exceção ocorre.The message displayed to the client when the exception occurs.

serverErrorMessage
String

A mensagem de erro do servidor LDAP.The LDAP server error message.

Aplica-se a