LdapDirectoryIdentifier Constructor (String, Boolean, Boolean)

 

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 server,
	bool fullyQualifiedDnsHostName,
	bool connectionless
)

Parameters

server
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 (:).

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

connectionless
Type: System.Boolean

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

Exception Condition
ArgumentException

Thrown if server contains only white space.

.NET Framework
Available since 2.0
Return to top
Show: