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

UIPermissionAttribute

Allows security actions for UIPermission to be applied to code using declarative security. This class cannot be inherited.
public UIPermissionClipboard Clipboard { get; set; }

Gets or sets the type of access to the clipboard that is permitted.

public UIPermissionWindow Window { get; set; }

Gets or sets the type of access to the window resources that is permitted.

Initializes a new instance of the UIPermissionAttribute class with the specified SecurityAction.