Class WindowsSharePermission
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a Windows share level permission.
public class WindowsSharePermission : GlobalSerializableClassicBase, IComparable<WindowsSharePermission>
- Inheritance
-
WindowsSharePermission
- Implements
Constructors
WindowsSharePermission()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsSharePermission class.
public WindowsSharePermission()
Properties
AccountName
Gets or sets the account or group name to which this permission applies - for example "Domain\Administrators".
public string AccountName { get; set; }
Property Value
Remarks
Only a single share permission can be applied to a share ACL (unlike NTFS permissions) - therefore this is used as the unique index.
PermissionType
Gets or sets the permission type - either "Allow" or "Deny".
public WindowsSharePermissionType PermissionType { get; set; }
Property Value
PermissionTypeString
Gets the permission type - either "Allow" or "Deny".
public string PermissionTypeString { get; set; }
Property Value
Rights
Gets or sets the rights to which this permission either grants or denies.
public WindowsSharePermissionRight Rights { get; set; }
Property Value
RightsString
Gets the rights to which this permission either grants or denies.
public string RightsString { get; set; }
Property Value
Methods
CompareTo(WindowsSharePermission)
Compares two CENTREL.XIA.Configuration.Types.WindowsSharePermission objects to allow sorting alphabetically by account name.
public int CompareTo(WindowsSharePermission other)
Parameters
other
WindowsSharePermissionThe CENTREL.XIA.Configuration.Types.WindowsSharePermission to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsSharePermission objects.
ToString()
Returns the share permission as a human readable string - in the format "AccountName - Rights [Action]".
public override string ToString()
Returns
- string
The share permission as a human readable string.