Class WindowsDeviceClassCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of Windows device classes.
public class WindowsDeviceClassCollection : Collection<WindowsDeviceClass>, IList<WindowsDeviceClass>, ICollection<WindowsDeviceClass>, IList, ICollection, IReadOnlyList<WindowsDeviceClass>, IReadOnlyCollection<WindowsDeviceClass>, IEnumerable<WindowsDeviceClass>, IEnumerable
- Inheritance
-
WindowsDeviceClassCollection
- Implements
- Inherited Members
Remarks
This class is generated dynamically from the device data and is not persisted in any XML output or used by the data comparer.
Constructors
WindowsDeviceClassCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsDeviceClassCollection class.
public WindowsDeviceClassCollection()
Methods
Add(string, Guid)
Adds a new Windows device class to the collection, or returns an existing device class.
public WindowsDeviceClass Add(string className, Guid classGuid)
Parameters
classNamestringThe display name of this device class - for example "Universal Serial Bus controllers".
classGuidGuidThe unique GUID of this class - for example "{36fc9e60-c465-11cf-8056-444553540000}".
Returns
- WindowsDeviceClass
A newly created or existing CENTREL.XIA.Configuration.Types.WindowsDeviceClass object.
FindByGuid(Guid)
Returns the Windows device class with the specified GUID or null if no class with that GUID is found.
public WindowsDeviceClass FindByGuid(Guid classGuid)
Parameters
classGuidGuidThe GUID of the class to locate.
Returns
- WindowsDeviceClass
The Windows device class with the specified GUID or null if no class with that GUID is found.
FindByName(string)
Returns the Windows device class with the specified class name, or null if no class with that name is found.
public WindowsDeviceClass FindByName(string className)
Parameters
classNamestringThe name of the class to locate - for example "Universal Serial Bus controllers".
Returns
- WindowsDeviceClass
The Windows device class with the specified class name or null if no class with that name is found.
Sort()
Sorts the values in the collection.
public void Sort()