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

UIPermission

Controls the permissions related to user interfaces and the Clipboard. This class cannot be inherited.
public UIPermissionClipboard Clipboard { get; set; }

Gets or sets the Clipboard access represented by the permission.

public UIPermissionWindow Window { get; set; }

Gets or sets the window access represented by the permission.

Initializes a new instance of the UIPermission class with either fully restricted or unrestricted access, as specified.

public UIPermission(UIPermissionClipboard clipboardFlag)

Initializes a new instance of the UIPermission class with the permissions for the Clipboard, and no access to windows.

public UIPermission(UIPermissionWindow windowFlag)

Initializes a new instance of the UIPermission class with the permissions for windows, and no access to the Clipboard.

public UIPermission(UIPermissionWindow windowFlag, UIPermissionClipboard clipboardFlag)

Initializes a new instance of the UIPermission class with the specified permissions for windows and the Clipboard.

public bool IsUnrestricted()

Returns a value indicating whether the current permission is unrestricted.