LdapSessionOptions::StartTransportLayerSecurity Method (DirectoryControlCollection^)
.NET Framework (current version)
The StartTransportLayerSecurity method starts transport layer security encryption.
Assembly: System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)
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
Available since 2.0
Show: