<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.2.25163.2" />

KeyContainerPermission

Controls the ability to access key containers. This class cannot be inherited.

Gets the collection of KeyContainerPermissionAccessEntry objects associated with the current permission.

Gets the key container permission flags that apply to all key containers associated with the permission.

Initializes a new instance of the KeyContainerPermission class with either restricted or unrestricted permission.

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

Initializes a new instance of the KeyContainerPermission class with the specified global access and specific key container access rights.

public bool IsUnrestricted()

Determines whether the current permission is unrestricted.