DevicesManager.Disconnect Method ()
Disconnects the devices manager from the devices provider and cancels all pending operations.
Namespace: Microsoft.WindowsServerSolutions.Common.Devices
Assembly: DevicesOM (in DevicesOM.dll)
Syntax
public void Disconnect()
public:
void Disconnect()
Public Sub Disconnect
Remarks
When this method is called, the devices manager is disconnected from the devices provider and will not try to auto reconnect. The caller must call Connect or ConnectAsync again to connect to the devices provider.
Examples
The following code example shows how to disconnect the devices manager from the devices provider.
DevicesManager dm = new DevicesManager();
dm.Connect();
// close connection
dm.Disconnect();
See Also
DevicesManager Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace
Return to top