Esempio n. 1
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)
 {
 }
Esempio n. 2
0
 private static int AccessMaskFromRights(ShareRights shareRights)
 {
     return(ShareAccessRule.AccessMaskFromRights(shareRights, AccessControlType.Allow));;
 }
Esempio n. 3
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)
 {
 }
Esempio n. 4
0
 public ShareAuditRule(IdentityReference identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
     : this(identity, AccessMaskFromRights(shareRights), false, inheritanceFlags, propagationFlags, flags)
 {
 }
Esempio n. 5
0
 public ShareAuditRule(string identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
     : this(new NTAccount(identity), AccessMaskFromRights(shareRights), false, inheritanceFlags, propagationFlags, flags)
 {
 }
Esempio n. 6
0
 // Methods
 public ShareAuditRule(IdentityReference identity, ShareRights shareRights, AuditFlags flags)
     : this(identity, shareRights, InheritanceFlags.None, PropagationFlags.None, flags)
 {
 }
Esempio n. 7
0
 public ShareAuditRule(string identity, ShareRights shareRights, AuditFlags flags)
     : this(new NTAccount(identity), shareRights, InheritanceFlags.None, PropagationFlags.None, flags)
 {
 }
Esempio n. 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)
 {
 }
Esempio n. 9
0
 internal static int AccessMaskFromRights(ShareRights shareRights, AccessControlType controlType)
 {
     return((int)shareRights);
 }
Esempio n. 10
0
 public ShareAccessRule(IdentityReference identity, ShareRights shareRights, AccessControlType type)
     : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Esempio n. 11
0
 public ShareAccessRule(IdentityReference identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
     : this(identity, AccessMaskFromRights(shareRights, type), false, inheritanceFlags, propagationFlags, type)
 {
 }
Esempio n. 12
0
 public ShareAccessRule(string identity, ShareRights shareRights, AccessControlType type)
     : this(new NTAccount(identity), shareRights, type)
 {
 }
Esempio n. 13
0
 public ShareAccessRule(string identity, ShareRights shareRights, AccessControlType type)
     : this(new NTAccount(identity), shareRights, type)
 {
 }
Esempio n. 14
0
 public ShareAccessRule(IdentityReference identity, ShareRights shareRights, AccessControlType type)
     : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type)
 {
 }
Esempio n. 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)
 {
 }
Esempio n. 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)
 {
 }