LdapDirectoryIdentifier Constructor (String)

 

The LdapDirectoryIdentifier constructor creates an instance of the LdapDirectoryIdentifier class using the specified server.

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

public LdapDirectoryIdentifier(
	string server
)

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, or null. If null, it represents the identity of any domain controller in the domain associated with the computer account.

Optionally, this parameter may also include a port number, separated from the ID itself by a colon (:).

Exception Condition
ArgumentException

Thrown if server has space.

.NET Framework
Available since 2.0
Return to top
Show: