Table of Contents

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, string)

Adds a new Windows device class to the collection, or returns an existing device class.

public WindowsDeviceClass Add(string ClassName, string ClassGUID)

Parameters

ClassName string

The display name of this device class - for example "Universal Serial Bus controllers".

ClassGUID string

The 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(string)

Returns the Windows device class with the specified GUID or null if no class with that GUID is found.

public WindowsDeviceClass FindByGUID(string ClassGUID)

Parameters

ClassGUID string

The 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

ClassName string

The 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.

FromXml(string)

Returns a CENTREL.XIA.Configuration.Types.WindowsDeviceClassCollection class from the specified XML.

public static WindowsDeviceClassCollection FromXml(string Xml)

Parameters

Xml string

The XML representation of the object.

Returns

WindowsDeviceClassCollection

A CENTREL.XIA.Configuration.Types.WindowsDeviceClassCollection class.

Sort()

Sorts the values in the collection.

public void Sort()

ToXml()

Returns the XML representation of this CENTREL.XIA.Configuration.Types.WindowsDeviceClassCollection.

public string ToXml()

Returns

string

The CENTREL.XIA.Configuration.Types.WindowsDeviceClassCollection in XML format.