AccessRule
Represents a combination of a user's identity, an access mask, and an access control type (allow or deny). An AccessRule object also contains information about the how the rule is inherited by child objects and how that inheritance is propagated.
using System.Runtime.CompilerServices;
using System.Security.Principal;
namespace System.Security.AccessControl
{
public abstract class AccessRule : AuthorizationRule
{
public AccessControlType AccessControlType {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
[System.Runtime.CompilerServices.NullableContext(1)]
protected AccessRule(IdentityReference identity, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)
: base(null, 0, false, InheritanceFlags.None, PropagationFlags.None)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl);
}
}
}