Share via


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)

Inheritance Hierarchy

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

Syntax

public sealed class DevicesManager : IDevicesEventNotifier, IDisposable
public ref class DevicesManager sealed : IDevicesEventNotifier, 
    IDisposable
Public NotInheritable Class DevicesManager
    Implements IDevicesEventNotifier, IDisposable

Constructors

Name Description
System_CAPS_pubmethod DevicesManager()

Initializes a new instance of the DevicesManager class.

Properties

Name Description
System_CAPS_pubproperty Connected

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

System_CAPS_pubproperty DeviceInfoCollection

Gets a reference to the ReadOnlyDeviceInfoCollection.

Methods

Name Description
System_CAPS_pubmethod AuthoritativeRefreshDevices(Guid, IEnumerable<ReportDeviceParameters>, Boolean)

Refreshes the list of devices of the specified type.

System_CAPS_pubmethod AuthoritativeRefreshDevicesAsync(Guid, IEnumerable<ReportDeviceParameters>, Boolean)

Asynchronously refreshes the list of devices.

System_CAPS_pubmethod Connect()

Connects the devices manager to the devices provider.

System_CAPS_pubmethod Connect(TimeSpan)

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

System_CAPS_pubmethod ConnectAsync()

Asynchronously connects the devices manager to the devices provider.

System_CAPS_pubmethod ConnectAsync(TimeSpan)

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

System_CAPS_pubmethod Disconnect()

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

System_CAPS_pubmethod Dispose()

Release all resources that are used by the DevicesManager object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetAllDevicesInfo()

Returns a ReadOnlyDeviceInfoCollection that contains all of the DeviceInfo objects.

System_CAPS_pubmethod GetAllDevicesInfoAsync()

Asynchronously gets the information for all of the devices.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod RemoveDevice(String, Guid)

Removes a device from the database.

System_CAPS_pubmethod RemoveDeviceAsync(String, Guid)

Asynchronously removes a device from the database.

System_CAPS_pubmethod ReportDevice(Guid, ReportDeviceParameters)

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

System_CAPS_pubmethod ReportDevice(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_pubmethod ReportDeviceAsync(Guid, ReportDeviceParameters)

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

System_CAPS_pubmethod ReportDeviceAsync(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_pubmethod ReportDeviceProperties(String, IList<DeviceProperty>)

Reports the properties of a device.

System_CAPS_pubmethod ReportDevicePropertiesAsync(String, IList<DeviceProperty>)

Asynchronously reports the properties of a device.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Events

Name Description
System_CAPS_pubevent AuthoritativeRefreshDevicesCompleted

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

System_CAPS_pubevent ConnectionClosed

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

System_CAPS_pubevent ConnectionOpened

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

System_CAPS_pubevent ConnectionTimedOut

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

System_CAPS_pubevent GetAllDevicesInfoCompleted

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

System_CAPS_pubevent RemoveDeviceCompleted

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

System_CAPS_pubevent ReportDeviceCompleted

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

System_CAPS_pubevent ReportDevicePropertiesCompleted

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

Remarks

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.

Thread Safety

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

See Also

Microsoft.WindowsServerSolutions.Common.Devices Namespace

Return to top