LdapException Classe
Definição
A classe LdapException é uma exceção que ocorre quando o LDAP retorna um código de erro não incluído em ResultCode.The LdapException class is an exception that occurs when LDAP returns an error code not included in ResultCode.
public ref class LdapException : System::DirectoryServices::Protocols::DirectoryException
public class LdapException : System.DirectoryServices.Protocols.DirectoryException
[System.Serializable]
public class LdapException : System.DirectoryServices.Protocols.DirectoryException
type LdapException = class
inherit DirectoryException
interface ISerializable
[<System.Serializable>]
type LdapException = class
inherit DirectoryException
interface ISerializable
Public Class LdapException
Inherits DirectoryException
- Herança
- Atributos
- Implementações
Construtores
| 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(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(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(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) |
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(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. |
Propriedades
| Data |
Obtém uma coleção de pares de chave/valor que fornecem informações definidas pelo usuário adicionais sobre a exceção.Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Herdado de Exception) |
| ErrorCode |
A propriedade ErrorCode contém o código de erro LDAP.The ErrorCode property contains the LDAP error code. |
| HelpLink |
Obtém ou define um link para o arquivo de ajuda associado a essa exceção.Gets or sets a link to the help file associated with this exception. (Herdado de Exception) |
| HResult |
Obtém ou define HRESULT, um valor numérico codificado que é atribuído a uma exceção específica.Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Herdado de Exception) |
| InnerException |
Obtém a instância Exception que causou a exceção atual.Gets the Exception instance that caused the current exception. (Herdado de Exception) |
| Message |
Obtém uma mensagem que descreve a exceção atual.Gets a message that describes the current exception. (Herdado de Exception) |
| PartialResults |
A propriedade PartialResults contém um objeto PartialResultsCollection que contém os resultados parciais.The PartialResults property contains a PartialResultsCollection object that contains partial results. |
| ServerErrorMessage |
A propriedade ServerErrorMessage contém uma String que contém a mensagem de erro do servidor LDAP (se houver alguma).The ServerErrorMessage property contains a String that contains the LDAP server error message (if any exists). |
| Source |
Obtém ou define o nome do aplicativo ou objeto que causa o erro.Gets or sets the name of the application or the object that causes the error. (Herdado de Exception) |
| StackTrace |
Obtém uma representação de cadeia de caracteres de quadros imediatos na pilha de chamadas.Gets a string representation of the immediate frames on the call stack. (Herdado de Exception) |
| TargetSite |
Obtém o método que gerou a exceção atual.Gets the method that throws the current exception. (Herdado de Exception) |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetBaseException() |
Quando substituído em uma classe derivada, retorna a Exception que é a causa raiz de uma ou mais exceções subsequentes.When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Herdado de Exception) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetObjectData(SerializationInfo, StreamingContext) |
O método GetObjectData(SerializationInfo, StreamingContext) popula o objeto SerializationInfo com os dados necessários para serializar o parâmetro.The GetObjectData(SerializationInfo, StreamingContext) method populates the SerializationInfo object with the data required to serialize the parameter. |
| GetType() |
Obtém o tipo de runtime da instância atual.Gets the runtime type of the current instance. (Herdado de Exception) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Cria e retorna uma representação de cadeia de caracteres da exceção atual.Creates and returns a string representation of the current exception. (Herdado de Exception) |
Eventos
| SerializeObjectState |
Ocorre quando uma exceção é serializada para criar um objeto de estado de exceção que contém dados serializados sobre a exceção.Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Herdado de Exception) |