System.Security.Permissions.UIPermission Class

Controls the permissions related to user interfaces and the Clipboard. This class cannot be inherited.

See Also: UIPermission Members


public sealed class UIPermission : System.Security.CodeAccessPermission, IBuiltInPermission, IUnrestrictedPermission


Drawing and user input events in windows are user interfaces.

The permission to use windows can be one of the following: unrestricted, limited to UIPermissionWindow.SafeTopLevelWindows, only UIPermissionWindow.SafeSubWindows, or no window drawing or user input event access allowed. UIPermissionWindow.SafeTopLevelWindows and UIPermissionWindow.SafeSubWindows are restricted in title and size to prevent possible spoofing by potentially harmful code.

The permission to use the Clipboard can be one of the following: unrestricted, write-only, or no Clipboard access allowed. The paste limitation prevents potentially harmful applications from taking data from the Clipboard without the user's consent, while still allowing the cut, copy, and paste operations when initiated by the user through keyboard commands.


Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,