public DesktopAccessRule(IdentityReference identity, DesktopRights desktopRights, AccessControlType type) : base( identity, DesktopAccessRule.AccessMaskFromRights(desktopRights, type), false /* isInherited */, InheritanceFlags.None, PropagationFlags.None, type) { }
public DesktopAuditRule(IdentityReference identity, DesktopRights desktopRights, AuditFlags flags) : base( identity, DesktopAuditRule.AccessMaskFromRights(desktopRights), false /* isInherited */, InheritanceFlags.None, PropagationFlags.None, flags) { }
internal static int AccessMaskFromRights(DesktopRights desktopRights) { return((int)desktopRights); }
internal static int AccessMaskFromRights(DesktopRights desktopRights, AccessControlType controlType) { return((int)desktopRights); }
/// <summary> /// Initializes a new instance of the <see cref="DesktopAuditRule"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="desktopRights">The desktop rights.</param> /// <param name="type">The type.</param> public DesktopAuditRule(string identity, DesktopRights desktopRights, AuditFlags type) : this(new NTAccount(identity), desktopRights, type) { }
/// <summary> /// Initializes a new instance of the <see cref="DesktopAccessRule"/> class. /// </summary> /// <param name="identity">The identity of the user to be granted or denied /// the associated rights.</param> /// <param name="desktopRights">The desktop rights allowed or denied.</param> /// <param name="type">The type of access controlled by the rule.</param> public DesktopAccessRule(string identity, DesktopRights desktopRights, AccessControlType type) : this(new NTAccount(identity), desktopRights, type) { }
/// <summary> /// Initializes a new instance of the <see cref="DesktopAuditRule"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="desktopRights">The desktop rights.</param> /// <param name="type">The type.</param> public DesktopAuditRule(IdentityReference identity, DesktopRights desktopRights, AuditFlags type) : base(identity, (int)desktopRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }
/// <summary> /// Initializes a new instance of the <see cref="DesktopAccessRule"/> class. /// </summary> /// <param name="identity">The identity of the user to be granted or denied /// the associated rights.</param> /// <param name="desktopRights">The desktop rights allowed or denied.</param> /// <param name="type">The type of access controlled by the rule.</param> public DesktopAccessRule(IdentityReference identity, DesktopRights desktopRights, AccessControlType type) : base(identity, (int)desktopRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }