Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Asynchronously connects the Machine Identity Manager to the User Provider.
Namespace: Microsoft.WindowsServerSolutions.Devices.Identity
Assembly: MachineIdentityObjectModel (in MachineIdentityObjectModel.dll)
Syntax
public void ConnectAsync()
public:
void ConnectAsync()
Public Sub ConnectAsync
Examples
The following code example shows how to connect and perform an operation:
MachineIdentityManager MI = new MachineIdentityManager()
MI.ConnectRequestCompletionCallback += ConnectIdentityAsyncCompleted;
MI.ConnectAsync();
The following code example shows the connect delegate method:
private void ConnectIdentityAsyncCompleted(
object sender, MachineIdentityRequestCompletionEventArgs e)
{
MI.ConnectRequestCompletionCallback -= ConnectIdentityAsyncCompleted;
if (e.ErrorCode.ErrorCatalog == ErrorCatalogType.Succeeded)
{
//TODO: perform an operation
}
else
{
//TODO: Something
}
}
See Also
ConnectAsync Overload
MachineIdentityManager Class
Microsoft.WindowsServerSolutions.Devices.Identity Namespace
Return to top