Class WindowsDevice
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a device on a Windows machine that as found in the device manager management console.
public class WindowsDevice : GlobalSerializableClassicBase, IComparable<WindowsDevice>
- Inheritance
-
WindowsDevice
- Implements
Constructors
WindowsDevice()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsDevice class.
public WindowsDevice()
Properties
ClassGuid
Gets or sets the unique ID of the class (category) that this device belongs to - for example "{36fc9e60-c465-11cf-8056-444553540000}".
public string ClassGuid { get; set; }
Property Value
ClassName
Gets or sets the display name of the class (category) that this device belongs to - for example "Universal Serial Bus controllers".
public string ClassName { get; set; }
Property Value
ConfigManagerErrorCode
Gets or sets the config manager error code for this device - an error code of 0 represents a working device.
public int ConfigManagerErrorCode { get; set; }
Property Value
Driver
Gets or sets the driver information for this device. This is available to Windows XP and above only.
public WindowsDeviceDriverInformation Driver { get; set; }
Property Value
Location
Gets or sets the location of the device - for example "PCI bus 0, device 29, function 7". This is available to Windows XP and above only.
public string Location { get; set; }
Property Value
Manufacturer
Gets or sets the name of the manufacturer of this device - for example "Intel".
public string Manufacturer { get; set; }
Property Value
Name
Gets or sets the name of this device - for example "Microsoft USB IntelliMouse Explorer 3.0".
public string Name { get; set; }
Property Value
PnpDeviceId
public string PnpDeviceId { get; set; }
Property Value
Service
Gets or sets the service that supports this device - for example "mouhid".
public string Service { get; set; }
Property Value
Status
Gets the status of the device at the time of the scan - for example "Device is working properly".
public string Status { get; set; }
Property Value
Remarks
An additional "D" character must be prepended to the error code as numerical only values cannot be used for resource value names.
Methods
CompareTo(WindowsDevice)
Compares two CENTREL.XIA.Configuration.Types.WindowsDevice objects to allow sorting by name.
public int CompareTo(WindowsDevice other)
Parameters
other
WindowsDeviceThe CENTREL.XIA.Configuration.Types.WindowsDevice to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsDevice objects.