LdapDirectoryIdentifier Constructor (String, Int32, Boolean, Boolean)

 
System_CAPS_noteNote

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 server,
	int portNumber,
	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.

portNumber
Type: System.Int32

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

Exception Condition
ArgumentException

Thrown if server has space.

.NET Framework
Available since 2.0
Return to top
Show: