LdapException Constructor (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.

Namespace:  System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

public LdapException(
	int errorCode,
	string message,
	string serverErrorMessage
)

Parameters

errorCode
Type: System.Int32

The error code returned by the LDAP implementation.

message
Type: System.String
serverErrorMessage
Type: System.String

The LDAP server error message.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft