<PackageReference Include="System.Security.Permissions" Version="9.0.6" />

StorePermission

Controls access to stores containing X.509 certificates. This class cannot be inherited.
public StorePermissionFlags Flags { get; set; }

Gets or sets the type of X509Store access allowed by the current permission.

Initializes a new instance of the StorePermission class with either fully restricted or unrestricted permission state.

Initializes a new instance of the StorePermission class with the specified access.

public bool IsUnrestricted()

Returns a value indicating whether the current permission is unrestricted.