DevicesManager Class

 

Represents synchronous and asynchronous operations that are used to interact with the devices provider.

Namespace:   Microsoft.WindowsServerSolutions.Common.Devices
Assembly:  DevicesOM (in DevicesOM.dll)

System.Object
  Microsoft.WindowsServerSolutions.Common.Devices.DevicesManager

public sealed class DevicesManager : IDevicesEventNotifier, IDisposable

NameDescription
System_CAPS_pubmethodDevicesManager()

Initializes a new instance of the DevicesManager class.

NameDescription
System_CAPS_pubpropertyConnected

Indicates whether the devices manager is connected to the devices provider.

System_CAPS_pubpropertyDeviceInfoCollection

Gets a reference to the ReadOnlyDeviceInfoCollection.

NameDescription
System_CAPS_pubmethodAuthoritativeRefreshDevices(Guid, IEnumerable<ReportDeviceParameters>, Boolean)

Refreshes the list of devices of the specified type.

System_CAPS_pubmethodAuthoritativeRefreshDevicesAsync(Guid, IEnumerable<ReportDeviceParameters>, Boolean)

Asynchronously refreshes the list of devices.

System_CAPS_pubmethodConnect()

Connects the devices manager to the devices provider.

System_CAPS_pubmethodConnect(TimeSpan)

Connects the devices manager to the devices provider with the specified timeout period.

System_CAPS_pubmethodConnectAsync()

Asynchronously connects the devices manager to the devices provider.

System_CAPS_pubmethodConnectAsync(TimeSpan)

Asynchronously connects the devices manager to the devices provider with the specified time-out period.

System_CAPS_pubmethodDisconnect()

Disconnects the devices manager from the devices provider and cancels all pending operations.

System_CAPS_pubmethodDispose()

Release all resources that are used by the DevicesManager object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetAllDevicesInfo()

Returns a ReadOnlyDeviceInfoCollection that contains all of the DeviceInfo objects.

System_CAPS_pubmethodGetAllDevicesInfoAsync()

Asynchronously gets the information for all of the devices.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemoveDevice(String, Guid)

Removes a device from the database.

System_CAPS_pubmethodRemoveDeviceAsync(String, Guid)

Asynchronously removes a device from the database.

System_CAPS_pubmethodReportDevice(Guid, ReportDeviceParameters)

Reports when a new device is added; or when a name, or an identity status of a device is updated.

System_CAPS_pubmethodReportDevice(String, Guid, String, DeviceIdentityStatus, String)

Reports when a new device is added; or when a name, or identity status of a device is updated.

System_CAPS_pubmethodReportDeviceAsync(Guid, ReportDeviceParameters)

Asynchronously reports when a new device is added; or when a name, or identity status of a device is updated.

System_CAPS_pubmethodReportDeviceAsync(String, Guid, String, DeviceIdentityStatus, String)

Asynchronously reports when a new device is added; or a name, or identity status of a device is updated.

System_CAPS_pubmethodReportDeviceProperties(String, IList<DeviceProperty>)

Reports the properties of a device.

System_CAPS_pubmethodReportDevicePropertiesAsync(String, IList<DeviceProperty>)

Asynchronously reports the properties of a device.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubeventAuthoritativeRefreshDevicesCompleted

Represents an event that is raised when the AuthoritativeRefreshDevicesAsync operation finishes.

System_CAPS_pubeventConnectionClosed

Represents an event that is raised when the connection to the devices provider is not available.

System_CAPS_pubeventConnectionOpened

Represents an event that is raised when the connection to the devices provider is available.

System_CAPS_pubeventConnectionTimedOut

Represents an event that is raised when a connection is not established in the time-out period.

System_CAPS_pubeventGetAllDevicesInfoCompleted

Represents an event that is raised when the GetAllDevicesInfoAsync operation finishes.

System_CAPS_pubeventRemoveDeviceCompleted

Represents an event that is raised when the ReportDeviceAsync operation finishes.

System_CAPS_pubeventReportDeviceCompleted

Represents an event that is raised when the ReportDeviceAsync operation finishes.

System_CAPS_pubeventReportDevicePropertiesCompleted

Represents an event that is raised when the ReportDevicePropertiesAsync operation finishes.

The DevicesManager class is the main object model class of the Devices Provider. It is used to query the Device Provider backend to perform synchronous and asynchronous operations such as adding and removing devices, adding and updating device properties, and getting device property information.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: