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

StorePermissionAttribute

Allows security actions for StorePermission to be applied to code using declarative security. This class cannot be inherited.
public bool AddToStore { get; set; }

Gets or sets a value indicating whether the code is permitted to add to a store.

public bool CreateStore { get; set; }

Gets or sets a value indicating whether the code is permitted to create a store.

public bool DeleteStore { get; set; }

Gets or sets a value indicating whether the code is permitted to delete a store.

public bool EnumerateCertificates { get; set; }

Gets or sets a value indicating whether the code is permitted to enumerate the certificates in a store.

public bool EnumerateStores { get; set; }

Gets or sets a value indicating whether the code is permitted to enumerate stores.

public StorePermissionFlags Flags { get; set; }

Gets or sets the store permissions.

public bool OpenStore { get; set; }

Gets or sets a value indicating whether the code is permitted to open a store.

public bool RemoveFromStore { get; set; }

Gets or sets a value indicating whether the code is permitted to remove a certificate from a store.

Initializes a new instance of the StorePermissionAttribute class with the specified security action.