Begins a connection to the server.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)

Usage

Visual Basic
Dim instance As IMAPasswordManagement
Dim connectTo As String
Dim user As String
Dim password As String

instance.BeginConnectionToServer(connectTo, user, password)

Syntax

Visual Basic
Sub BeginConnectionToServer ( _
		connectTo As String, _
		user As String, _
		password As String _
)
C#
void BeginConnectionToServer (
		string connectTo,
		string user,
		string password
)
C++
void BeginConnectionToServer (
		String^ connectTo, 
		String^ user, 
		String^ password
)
J#
void BeginConnectionToServer (
		String connectTo, 
		String user, 
		String password
)
JScript
function BeginConnectionToServer (
		connectTo : String, 
		user : String, 
		password : String
)

Parameters

connectTo

The name of the server to connect to by the extension.

user

The user name of the account that has the appropriate privileges on the server.

password

The password of the account that has the appropriate privileges on the server.

Exceptions

Exception type Condition
BadServerCredentialsException

The credentials that are used to connect to the connected directory are not valid.

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

[an error occurred while processing this directive]