<PackageReference Include="System.Security.AccessControl" Version="5.0.0-preview.5.20278.1" />

AccessRule<T>

public class AccessRule<T> : AccessRule where T : struct
Represents a combination of a user's identity, an access mask, and an access control type (allow or deny). An AccessRule`1 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 class AccessRule<T> : AccessRule where T : struct { public T Rights { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } public AccessRule([System.Runtime.CompilerServices.Nullable(1)] IdentityReference identity, T rights, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } public AccessRule([System.Runtime.CompilerServices.Nullable(1)] IdentityReference identity, T rights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } public AccessRule([System.Runtime.CompilerServices.Nullable(1)] string identity, T rights, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } public AccessRule([System.Runtime.CompilerServices.Nullable(1)] string identity, T rights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type) : base(null, 0, false, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_AccessControl); } } }