Compartilhar via


IMAPasswordManagement.GetConnectionSecurityLevel Method

Determines the security level of the connection to the server. This method is called after the call to the BeginConnectionToServer method is successful.

Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)

Usage

'Usage
Dim instance As IMAPasswordManagement
Dim returnValue As ConnectionSecurityLevel

returnValue = instance.GetConnectionSecurityLevel

Syntax

'Declaration
Function GetConnectionSecurityLevel As ConnectionSecurityLevel
ConnectionSecurityLevel GetConnectionSecurityLevel ()
ConnectionSecurityLevel GetConnectionSecurityLevel ()
ConnectionSecurityLevel GetConnectionSecurityLevel ()
function GetConnectionSecurityLevel () : ConnectionSecurityLevel

Return Value

A ConnectionSecurityLevel value that determines the security level of the connection to the server.

Exceptions

Exception type Condition
EntryPointNotImplementedException

The rules extension does not implement this method.

PasswordExtensionException

The password extension throws an unknown exception.

ServerDownException

The connected directory extension cannot establish a connection to the connected directory.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

IMAPasswordManagement Interface
IMAPasswordManagement Members
Microsoft.MetadirectoryServices Namespace
IMAPasswordManagement Interface