Table of Contents

Class WindowsDevices

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents of a collection of devices on a Windows machine as seen in the device manager management console.

public class WindowsDevices : BypassSection
Inheritance
WindowsDevices
Inherited Members

Constructors

WindowsDevices()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsDevices class.

public WindowsDevices()

Properties

Items

Gets or sets the items in the collection.

public WindowsDeviceCollection Items { get; set; }

Property Value

WindowsDeviceCollection

Methods

FindById(string)

Returns the Windows device with the specified plug and play (PnP) device ID or null if no device with that ID is found.

public WindowsDevice FindById(string id)

Parameters

id string

The unique PnP device identifier of the device to find - for example "ACPI\LEN0005\4283E1E530".

Returns

WindowsDevice

The Windows device with the specified plug and play (PnP) device ID.

GetDeviceClasses()

Returns a collection of the device class names that are assigned to the devices.

public WindowsDeviceClassCollection GetDeviceClasses()

Returns

WindowsDeviceClassCollection

A CENTREL.XIA.Configuration.Types.WindowsDeviceClassCollection object from the current device data.

Remarks

This method is used to build the device tree.

GetDevicesByClass(string)

Returns a collection of the devices found within a specific device class.

public WindowsDeviceCollection GetDevicesByClass(string className)

Parameters

className string

The name of the device class for which devices should be returned - for example "Universal Serial Bus controllers".

Returns

WindowsDeviceCollection

A collection of the devices found within a specific device class.

ToString()

Returns the Windows devices as a human readable string - for example "10 Devices" or "{Not Documented}".

public override string ToString()

Returns

string

The Windows devices as a human readable string.