LdapSessionOptions.StartTransportLayerSecurity Method (DirectoryControlCollection)

 
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 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: