Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskAccessRule"/> class, specifying the name of 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="eventRights">A bitwise combination of <see cref="TaskRights"/> values specifying the rights allowed or denied.</param>
 /// <param name="type">One of the <see cref="AccessControlType"/> values specifying whether the rights are allowed or denied.</param>
 public TaskAccessRule([NotNull] string identity, TaskRights eventRights, AccessControlType type)
     : this(new NTAccount(identity), (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskAccessRule"/> 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 of type <see cref="SecurityIdentifier"/> or a type such as <see cref="NTAccount"/> that can be converted to type <see cref="SecurityIdentifier"/>.</param>
 /// <param name="eventRights">A bitwise combination of <see cref="TaskRights"/> values specifying the rights allowed or denied.</param>
 /// <param name="type">One of the <see cref="AccessControlType"/> values specifying whether the rights are allowed or denied.</param>
 public TaskAccessRule([NotNull] IdentityReference identity, TaskRights eventRights, AccessControlType type)
     : this(identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskAuditRule" /> 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. Must be of type <see cref="SecurityIdentifier" /> or a type such as <see cref="NTAccount" /> that can be converted to type <see cref="SecurityIdentifier" />.</param>
 /// <param name="eventRights">A bitwise combination of <see cref="TaskRights" /> values specifying the kinds of access to audit.</param>
 /// <param name="flags">The audit flags.</param>
 public TaskAuditRule([NotNull] IdentityReference identity, TaskRights eventRights, AuditFlags flags)
     : this(identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, flags)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskAccessRule"/> class, specifying the name of 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="eventRights">A bitwise combination of <see cref="TaskRights"/> values specifying the rights allowed or denied.</param>
 /// <param name="type">One of the <see cref="AccessControlType"/> values specifying whether the rights are allowed or denied.</param>
 public TaskAccessRule(string identity, TaskRights eventRights, AccessControlType type)
     : this(new NTAccount(identity), (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskAccessRule"/> 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 of type <see cref="SecurityIdentifier"/> or a type such as <see cref="NTAccount"/> that can be converted to type <see cref="SecurityIdentifier"/>.</param>
 /// <param name="eventRights">A bitwise combination of <see cref="TaskRights"/> values specifying the rights allowed or denied.</param>
 /// <param name="type">One of the <see cref="AccessControlType"/> values specifying whether the rights are allowed or denied.</param>
 public TaskAccessRule(IdentityReference identity, TaskRights eventRights, AccessControlType type)
     : this(identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskAuditRule" /> 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. Must be of type <see cref="SecurityIdentifier" /> or a type such as <see cref="NTAccount" /> that can be converted to type <see cref="SecurityIdentifier" />.</param>
 /// <param name="eventRights">A bitwise combination of <see cref="TaskRights" /> values specifying the kinds of access to audit.</param>
 /// <param name="flags">The audit flags.</param>
 public TaskAuditRule(IdentityReference identity, TaskRights eventRights, AuditFlags flags)
     : this(identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, flags)
 {
 }