Editar

LdapException Class

Definition

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
type LdapException = class
    inherit DirectoryException
    interface ISerializable
Public Class LdapException
Inherits DirectoryException
Inheritance
Implements

Constructors

Name Description
LdapException()

The LdapException() constructor creates an instance of the LdapException class.

LdapException(Int32, String, Exception)

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)

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(Int32, String)

The LdapException(Int32, String) constructor creates an instance of the LdapException class using the specified error code and message.

LdapException(Int32)

The LdapException(Int32) constructor creates an instance of the LdapException class using the specified error code. The default message displayed to the client is "Communications error with the LDAP server".

LdapException(SerializationInfo, StreamingContext)
Obsolete.

The LdapException(SerializationInfo, StreamingContext) constructor creates an instance of the LdapException class using the specified serialization data and streaming context.

LdapException(String, Exception)

The LdapException(String, Exception) constructor creates an instance of the LdapException class using the specified message and inner exception.

LdapException(String)

The LdapException(String) constructor creates an instance of the LdapException class using the specified message.

Properties

Name Description
ErrorCode

The ErrorCode property contains the LDAP error code.

PartialResults

The PartialResults property contains a PartialResultsCollection object that contains partial results.

ServerErrorMessage

The ServerErrorMessage property contains a String that contains the LDAP server error message (if any exists).

Methods

Name Description
GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

The GetObjectData(SerializationInfo, StreamingContext) method populates the SerializationInfo object with the data required to serialize the parameter.

Applies to