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.
Indicates whether the devices manager is connected to the devices provider.
Namespace: Microsoft.WindowsServerSolutions.Common.Devices
Assembly: DevicesOM (in DevicesOM.dll)
Syntax
public bool Connected { get; }
public:
property bool Connected {
bool get();
}
Public ReadOnly Property Connected As Boolean
Property Value
Type: System.Boolean
true if the devices manager is connected; otherwise, false.
Examples
The following code example shows how to use the Connected property.
DevicesManager dm = new DevicesManager();
Console.WriteLine("Connected = {0}", dm.Connected);
dm.Connect();
Console.WriteLine("Connected = {0}", dm.Connected);
dm.Disconnect();
Console.WriteLine("Connected = {0}", dm.Connected);
// expected output:
// Connected = False
// Connected = True
// Connected = False
See Also
DevicesManager Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace
Return to top