DevicesManager.ConnectAsync Method ()
Asynchronously connects the devices manager to the devices provider.
Namespace: Microsoft.WindowsServerSolutions.Common.Devices
Assembly: DevicesOM (in DevicesOM.dll)
Syntax
public void ConnectAsync()
public:
void ConnectAsync()
Public Sub ConnectAsync
Examples
The following code example shows how to asynchronously connect the devices manager to the devices provider.
DevicesManager dm = new DevicesManager();
dm.ConnectionOpened += new EventHandler<EventArgs>(dm_ConnectionOpened);
dm.ConnectAsync();
static void dm_ConnectionOpened(object sender, EventArgs e)
{
Console.WriteLine("Connection opened.");
}
See Also
ConnectAsync Overload
DevicesManager Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace
Return to top