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