<PackageReference Include="System.Threading.AccessControl" Version="10.0.6" />

System.Security.AccessControl.MutexAccessRule

public sealed class MutexAccessRule : AccessRule
Represents a set of access rights allowed or denied for a user or group. This class cannot be inherited.
public MutexRights MutexRights { get; }

Gets the rights allowed or denied by the access rule.

public MutexAccessRule(IdentityReference identity, MutexRights eventRights, AccessControlType type)

Initializes a new instance of the MutexAccessRule class, specifying the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.

public MutexAccessRule(string identity, MutexRights eventRights, AccessControlType type)

Initializes a new instance of the MutexAccessRule class, specifying the name of the user or group the rule applies to, the access rights, and whether the specified access rights are allowed or denied.