/// <summary>
 /// Initializes a new instance of the <see cref="ShareAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="shareRights">The share rights.</param>
 /// <param name="type">The type.</param>
 public ShareAuditRule(string identity, ShareRights shareRights, AuditFlags type)
     : this(new NTAccount(identity), shareRights, type)
 {
 }
Example #2
0
 private static int AccessMaskFromRights(ShareRights shareRights)
 {
     return(ShareAccessRule.AccessMaskFromRights(shareRights, AccessControlType.Allow));;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShareAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="shareRights">The share rights.</param>
 /// <param name="type">The type.</param>
 public ShareAuditRule(IdentityReference identity, ShareRights shareRights, AuditFlags type)
     : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Example #4
0
 public ShareAuditRule(IdentityReference identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
     : this(identity, AccessMaskFromRights(shareRights), false, inheritanceFlags, propagationFlags, flags)
 {
 }
Example #5
0
 public ShareAuditRule(string identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
     : this(new NTAccount(identity), AccessMaskFromRights(shareRights), false, inheritanceFlags, propagationFlags, flags)
 {
 }
Example #6
0
 // Methods
 public ShareAuditRule(IdentityReference identity, ShareRights shareRights, AuditFlags flags)
     : this(identity, shareRights, InheritanceFlags.None, PropagationFlags.None, flags)
 {
 }
Example #7
0
 public ShareAuditRule(string identity, ShareRights shareRights, AuditFlags flags)
     : this(new NTAccount(identity), shareRights, InheritanceFlags.None, PropagationFlags.None, flags)
 {
 }
Example #8
0
 public ShareAccessRule(string identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
     : this(new NTAccount(identity), AccessMaskFromRights(shareRights, type), false, inheritanceFlags, propagationFlags, type)
 {
 }
Example #9
0
 internal static int AccessMaskFromRights(ShareRights shareRights, AccessControlType controlType)
 {
     return((int)shareRights);
 }
Example #10
0
 public ShareAccessRule(IdentityReference identity, ShareRights shareRights, AccessControlType type)
     : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Example #11
0
 public ShareAccessRule(IdentityReference identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
     : this(identity, AccessMaskFromRights(shareRights, type), false, inheritanceFlags, propagationFlags, type)
 {
 }
Example #12
0
 public ShareAccessRule(string identity, ShareRights shareRights, AccessControlType type)
     : this(new NTAccount(identity), shareRights, type)
 {
 }
 public ShareAccessRule(string identity, ShareRights shareRights, AccessControlType type)
     : this(new NTAccount(identity), shareRights, type)
 {
 }
 public ShareAccessRule(IdentityReference identity, ShareRights shareRights, AccessControlType type)
     : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Example #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShareAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="shareRights">The share rights.</param>
 /// <param name="type">The type.</param>
 public ShareAuditRule(string identity, ShareRights shareRights, AuditFlags type)
     : this(new NTAccount(identity), shareRights, type)
 {
 }
Example #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShareAuditRule"/> class.
 /// </summary>
 /// <param name="identity">The identity.</param>
 /// <param name="shareRights">The share rights.</param>
 /// <param name="type">The type.</param>
 public ShareAuditRule(IdentityReference identity, ShareRights shareRights, AuditFlags type)
     : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }