Redigera

Dela via


LdapException Constructors

Definition

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

Overloads

LdapException()

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

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

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

LdapException(Int32, String)

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

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(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()

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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

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

Applies to

LdapException(Int32)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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".

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

Parameters

errorCode
Int32

The error code returned by the LDAP implementation.

Applies to

LdapException(String)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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)

Parameters

message
String

The message displayed to the client when the exception occurs.

Applies to

LdapException(Int32, String)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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)

Parameters

errorCode
Int32

The error code returned by the LDAP implementation.

message
String

The message displayed to the client when the exception occurs.

Applies to

LdapException(SerializationInfo, StreamingContext)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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);
[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)

Parameters

info
SerializationInfo

Data required to serialize the parameter.

context
StreamingContext

The source and destination of the serialized stream associated with the parameter.

Attributes

Applies to

LdapException(String, Exception)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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)

Parameters

message
String

The message displayed to the client when the exception occurs.

inner
Exception

The inner exception, if any, that threw the exception.

Applies to

LdapException(Int32, String, Exception)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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)

Parameters

errorCode
Int32

The error code returned by the LDAP implementation.

message
String

The message displayed to the client when the exception occurs.

inner
Exception

The inner exception, if any, that threw the exception.

Applies to

LdapException(Int32, String, String)

Source:
LdapException.cs
Source:
LdapException.cs
Source:
LdapException.cs

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)

Parameters

errorCode
Int32

The error code returned by the LDAP implementation.

message
String

The message displayed to the client when the exception occurs.

serverErrorMessage
String

The LDAP server error message.

Applies to