LdapDirectoryIdentifier Constructor (String[], Int32, Boolean, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

The LdapDirectoryIdentifier constructor creates an instance of the LdapDirectoryIdentifier class using the specified server and properties. This constructor creates an identifier that represents a set of LDAP servers.

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

public LdapDirectoryIdentifier(
	string[] servers,
	int portNumber,
	bool fullyQualifiedDnsHostName,
	bool connectionless


Type: System.String[]

The server ID. A string specifying the server which can be a domain name, LDAP server name or dotted strings representing the IP address of the LDAP server. Optionally, this parameter may also include a port number, separated from the ID itself by a colon (:).

Type: System.Boolean

true if each element in servers is a fully-qualified DNS host name. If false, an element can be an IP address, a DNS domain or host name, or null. If null, it represents the identity of any domain controller in the domain associated with the computer account.

Type: System.Boolean

true if the connection is UDP or false if the connection uses TCP/IP.

Type: System.Int32

the port number to be used when connecting to a server.

Exception Condition

Thrown if server has space.

.NET Framework
Available since 2.0
Return to top