/// <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) { }
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) { }
public ShareAuditRule(IdentityReference identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags) : this(identity, AccessMaskFromRights(shareRights), false, inheritanceFlags, propagationFlags, flags) { }
public ShareAuditRule(string identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags) : this(new NTAccount(identity), AccessMaskFromRights(shareRights), false, inheritanceFlags, propagationFlags, flags) { }
// Methods public ShareAuditRule(IdentityReference identity, ShareRights shareRights, AuditFlags flags) : this(identity, shareRights, InheritanceFlags.None, PropagationFlags.None, flags) { }
public ShareAuditRule(string identity, ShareRights shareRights, AuditFlags flags) : this(new NTAccount(identity), shareRights, InheritanceFlags.None, PropagationFlags.None, flags) { }
public ShareAccessRule(string identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : this(new NTAccount(identity), AccessMaskFromRights(shareRights, type), false, inheritanceFlags, propagationFlags, type) { }
internal static int AccessMaskFromRights(ShareRights shareRights, AccessControlType controlType) { return((int)shareRights); }
public ShareAccessRule(IdentityReference identity, ShareRights shareRights, AccessControlType type) : base(identity, (int)shareRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }
public ShareAccessRule(IdentityReference identity, ShareRights shareRights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : this(identity, AccessMaskFromRights(shareRights, type), false, inheritanceFlags, propagationFlags, type) { }
public ShareAccessRule(string identity, ShareRights shareRights, AccessControlType type) : this(new NTAccount(identity), shareRights, type) { }