Class VMwareRoleCollection
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a collection of VMware authorisation roles.
public class VMwareRoleCollection : Collection<VMwareRole>, IList<VMwareRole>, ICollection<VMwareRole>, IList, ICollection, IReadOnlyList<VMwareRole>, IReadOnlyCollection<VMwareRole>, IEnumerable<VMwareRole>, IEnumerable
- Inheritance
-
VMwareRoleCollection
- Implements
- Inherited Members
Constructors
VMwareRoleCollection()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.VMwareRoleCollection class.
public VMwareRoleCollection()
Methods
FindByID(int)
Returns the role with the specified ID, or null if no role with the specified ID is found in the collection.
public VMwareRole FindByID(int ID)
Parameters
ID
intThe unique ID of the role to return.
Returns
- VMwareRole
The CENTREL.XIA.Configuration.Types.VMwareRole with the specified RoleID.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.VMwareRoleCollection class from the specified XML.
public static VMwareRoleCollection FromXml(string Xml)
Parameters
Xml
stringThe XML representation of the object.
Returns
- VMwareRoleCollection
A CENTREL.XIA.Configuration.Types.VMwareRoleCollection class.
GetRoleName(int)
Returns the name of the role with the specified ID, or an empty stringif no role with the specified ID is found in the collection.
public string GetRoleName(int ID)
Parameters
ID
intThe unique ID of the role to locate.
Returns
- string
The name of the role with the specified ID.
Sort()
Sorts the values in the collection.
public void Sort()
ToXml()
Returns the XML representation of this CENTREL.XIA.Configuration.Types.VMwareRoleCollection.
public string ToXml()
Returns
- string
The CENTREL.XIA.Configuration.Types.VMwareRoleCollection in XML format.