LdapDirectoryIdentifier Constructor (String, Int32)


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


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

The port number to use when connecting to the server.

Exception Condition

Thrown if server has space.

.NET Framework
Available since 2.0
Return to top