<PackageReference Include="System.Security.AccessControl" Version="4.7.0" />

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.
public T Rights { get; }

Gets the rights of the current instance.

public AccessRule(IdentityReference identity, T rights, AccessControlType type)

Initializes a new instance of the AccessRule'1 class by using the specified values.

public AccessRule(IdentityReference identity, T rights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)

Initializes a new instance of the AccessRule'1 class by using the specified values.

public AccessRule(string identity, T rights, AccessControlType type)

Initializes a new instance of the AccessRule'1 class by using the specified values.

public AccessRule(string identity, T rights, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AccessControlType type)

Initializes a new instance of the AccessRule'1 class by using the specified values.