Class WindowsUserRight
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a user right that can be assigned to a user on a Windows machine - for example the "SeAuditPrivilege" right.
public class WindowsUserRight : GlobalSerializableClassicBase, IComparable<WindowsUserRight>
- Inheritance
-
WindowsUserRight
- Implements
Constructors
WindowsUserRight()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsUserRight class.
public WindowsUserRight()
Properties
AccountNames
Gets or sets the list of user accounts that hold this right or privilege.
public SerializableStringCollection AccountNames { get; set; }
Property Value
- SerializableStringCollection
ConfigurationSource
Gets or sets the configuration source of this user right.
public PolicyConfigurableSource ConfigurationSource { get; set; }
Property Value
DisplayName
Gets the display name of this user right - for example "Generate security audits".
public string DisplayName { get; set; }
Property Value
Remarks
This field is ignored by the data comparer as it may change between Windows versions.
Name
Gets or sets the name of the right or privilege - for example "SeAuditPrivilege".
public string Name { get; set; }
Property Value
Methods
CompareTo(WindowsUserRight)
Compares two CENTREL.XIA.Configuration.Types.WindowsUserRight objects to allow the sorting alphabetically by display name.
public int CompareTo(WindowsUserRight other)
Parameters
other
WindowsUserRightThe CENTREL.XIA.Configuration.Types.WindowsUserRight to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsUserRight objects.
GetDisplayName(string)
Gets the display name of the user right with the specified name.
public static string GetDisplayName(string name)
Parameters
name
stringThe name of the right or privilege to resolve - for example "SeAuditPrivilege".
Returns
- string
The display name of this user right - for example "Generate security audits".