LdapSessionOptions.StartTransportLayerSecurity Method (DirectoryControlCollection)

 

The StartTransportLayerSecurity method starts transport layer security encryption.

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

public void StartTransportLayerSecurity(
	DirectoryControlCollection controls
)

Parameters

controls
Type: System.DirectoryServices.Protocols.DirectoryControlCollection

A DirectoryControlCollection object that contains the controls to use.

Exception Condition
ObjectDisposedException

The LdapConnection object is already disposed.

TlsOperationException

The request failed.

LdapException

An LDAP error occurred.

.NET Framework
Available since 2.0
Return to top
Show: