IMAPasswordManagement.BeginConnectionToServer Method
Begins a connection to the server.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in Microsoft.MetadirectoryServicesEx.dll)
Usage
'Usage
Dim instance As IMAPasswordManagement
Dim connectTo As String
Dim user As String
Dim password As String
instance.BeginConnectionToServer(connectTo, user, password)
Syntax
'Declaration
Sub BeginConnectionToServer ( _
connectTo As String, _
user As String, _
password As String _
)
void BeginConnectionToServer (
string connectTo,
string user,
string password
)
void BeginConnectionToServer (
String^ connectTo,
String^ user,
String^ password
)
void BeginConnectionToServer (
String connectTo,
String user,
String password
)
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
Reference
IMAPasswordManagement Interface
IMAPasswordManagement Members
Microsoft.MetadirectoryServices Namespace
IMAPasswordManagement Interface