Class XenDesktopMetadataItemCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of XenDesktop metadata items.
public class XenDesktopMetadataItemCollection : Collection<XenDesktopMetadataItem>, IList<XenDesktopMetadataItem>, ICollection<XenDesktopMetadataItem>, IList, ICollection, IReadOnlyList<XenDesktopMetadataItem>, IReadOnlyCollection<XenDesktopMetadataItem>, IEnumerable<XenDesktopMetadataItem>, IEnumerable
- Inheritance
-
XenDesktopMetadataItemCollection
- Implements
- Inherited Members
Constructors
XenDesktopMetadataItemCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.XenDesktopMetadataItemCollection class.
public XenDesktopMetadataItemCollection()
Methods
Add(string, string)
Adds a new item to the collection with the specified name and value. If an item with that name exists within the collection that item is updated.
public XenDesktopMetadataItem Add(string name, string value)
Parameters
Returns
- XenDesktopMetadataItem
The newly added item.
Exists(string)
Determines whether a metadata item with the specified name exists within the collection.
public bool Exists(string name)
Parameters
name
stringThe name of the metadata item to locate.
Returns
- bool
A System.Boolean value that determines whether an item with that name exists within the collection.
FindByName(string)
Returns the CENTREL.XIA.Configuration.Types.XenDesktopMetadataItem with the specified name, or null if no item with that name exists.
public XenDesktopMetadataItem FindByName(string name)
Parameters
name
stringThe name of the metadata item to locate.
Returns
- XenDesktopMetadataItem
The CENTREL.XIA.Configuration.Types.XenDesktopMetadataItem with the specified name.
FindValue(string)
Returns the value of the item, or an empty string if the value with the specified key does not exist in the collection.
public string FindValue(string name)
Parameters
name
stringThe name of the metadata item for which the value should be found.
Returns
- string
A System.String value of the metadata item.
Remove(string)
Remove the CENTREL.XIA.Configuration.Types.XenDesktopMetadataItem with the specified name, if a item with that name exists in the collection.
public void Remove(string name)
Parameters
name
stringThe name of the metadata item to remove.
Sort()
Sorts the values in the collection.
public void Sort()