/// <summary> /// Initializes a new instance of the <see cref="JobObjectAuditRule"/> class, specifying the user or group /// to audit, the rights to audit, and whether to audit success, failure, or both. /// </summary> /// <param name="identity">The user or group the rule applies to.</param> /// <param name="jobRights">A bitwise combination of <see cref="JobObjectRights"/> values specifygin the kinds of access to audit.</param> /// <param name="flags">A bitwise combination of AuditFlags values specifying whether to audit success, failure, or both.</param> public JobObjectAuditRule(IdentityReference identity, JobObjectRights jobRights, AuditFlags flags) : this(identity, (int)jobRights, false, InheritanceFlags.None, PropagationFlags.None, flags) { }
/// <summary> /// Initializes a new instance of the JobObjectAccessRule class, specifying the user or group the rule applies to, /// the access rights, and whether the specified access rights are allowed or denied. /// </summary> /// <param name="identity">The user or group the rule applies to. Must be a type that can be converted to a SecurityIdentifier.</param> /// <param name="jobRights">A bitwise combination of <see cref="JobObjectRights"/> values specifying the rights allowed or denied.</param> /// <param name="type">One of the AccessControlType values specifying whether the rights are allowed or denied.</param> public JobObjectAccessRule(IdentityReference identity, JobObjectRights jobRights, AccessControlType type) : this(identity, (int)jobRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }
/// <summary> /// Initializes a new instance of the JobObjectAccessRule class, specifying the user or group the rule applies to, /// the access rights, and whether the specified access rights are allowed or denied. /// </summary> /// <param name="identity">The name of the user or group the rule applies to.</param> /// <param name="jobRights">A bitwise combination of <see cref="JobObjectRights"/> values specifying the rights allowed or denied.</param> /// <param name="type">One of the AccessControlType values specifying whether the rights are allowed or denied.</param> public JobObjectAccessRule(string identity, JobObjectRights jobRights, AccessControlType type) : this(new NTAccount(identity), (int)jobRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }
/// <summary> /// Initializes a new instance of the <see cref="JobObjectAuditRule"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="jobObjectRights">The job object rights.</param> /// <param name="type">The type.</param> public JobObjectAuditRule(string identity, JobObjectRights jobObjectRights, AuditFlags type) : this(new NTAccount(identity), jobObjectRights, type) { }
public JobObjectAccessRule(string identity, JobObjectRights jobObjectRights, AccessControlType type) : this(new NTAccount(identity), jobObjectRights, type) { }
/// <summary> /// Initializes a new instance of the <see cref="JobObjectAuditRule"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="jobObjectRights">The job object rights.</param> /// <param name="type">The type.</param> public JobObjectAuditRule(IdentityReference identity, JobObjectRights jobObjectRights, AuditFlags type) : base(identity, (int)jobObjectRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }
public JobObjectAccessRule(IdentityReference identity, JobObjectRights jobObjectRights, AccessControlType type) : base(identity, (int)jobObjectRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }