Class XenDesktopAdministratorRole
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents an individual XenDesktop administrator role.
public class XenDesktopAdministratorRole : GlobalSerializableClassicBase, IComparable<XenDesktopAdministratorRole>
- Inheritance
-
XenDesktopAdministratorRole
- Implements
Constructors
XenDesktopAdministratorRole()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.XenDesktopAdministratorRole class.
public XenDesktopAdministratorRole()
Properties
BuiltIn
Gets or sets whether the role is a built-in role.
public BooleanOption BuiltIn { get; set; }
Property Value
Description
Gets or sets the description of the role.
public string Description { get; set; }
Property Value
Id
Gets or sets the unique identifier of the role - for example "ac0b54e3-6e8a-473f-9713-139218ed4e1d".
public string Id { get; set; }
Property Value
Name
Gets or sets the name of the role.
public string Name { get; set; }
Property Value
PermissionNames
Gets or sets the display names of the permissions assigned to the role.
public SerializableStringCollection PermissionNames { get; set; }
Property Value
- SerializableStringCollection
Permissions
Gets or sets the internal names of the permissions assigned to the role - for example "Applications_ChangeMaintenanceMode".
public SerializableStringCollection Permissions { get; set; }
Property Value
- SerializableStringCollection
Methods
CompareTo(XenDesktopAdministratorRole)
Compares two CENTREL.XIA.Configuration.Types.XenDesktopAdministratorRole objects to allow sorting alphabetically by role name.
public int CompareTo(XenDesktopAdministratorRole other)
Parameters
other
XenDesktopAdministratorRoleThe CENTREL.XIA.Configuration.Types.XenDesktopAdministratorRole to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.XenDesktopAdministratorRole objects.
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.XenDesktopAdministratorRole class from the specified XML.
public static XenDesktopAdministratorRole FromXml(string Xml)
Parameters
Xml
stringThe XML representation of the object.
Returns
- XenDesktopAdministratorRole
A CENTREL.XIA.Configuration.Types.XenDesktopAdministratorRole class.
ResolvePermissionName(string)
Resolves a permission to its display name.
public string ResolvePermissionName(string permission)
Parameters
permission
stringThe permission for which the display name should be resolved - for example "Storefront_Create".
Returns
- string
The display name for the permission - for example "Create a new StoreFront definition".
ToString()
Returns the role as a human readable string.
public override string ToString()
Returns
- string
The role as a human readable string.