Name

UIPermissionAttribute

Synopsis

public sealed class UIPermissionAttribute : CodeAccessSecurityAttribute {
// Public Constructors
   public UIPermissionAttribute(SecurityAction action);
// Public Instance Properties
   public UIPermissionClipboard Clipboard{set; get; }
   public UIPermissionWindow Window{set; get; }
// Public Instance Methods
   public override IPermission CreatePermission(  );
// overrides SecurityAttribute
}

The UIPermissionAttribute class provides declarative syntax support for the UIPermission class. The Clipboard property takes a value from the UIPermissionClipboard enumeration to configure the access granted to the clipboard, and the Window property takes a value from the UIPermissionWindow enumeration to configure the access granted to various window elements. Setting Unrestricted to true creates a UIPermissionAttribute that represents unrestricted access to all window and clipboard functionality

Hierarchy

System.Object System.Attribute SecurityAttribute CodeAccessSecurityAttribute UIPermissionAttribute

Valid On

Assembly, Class, Struct, Constructor, Method

Get Programming .NET Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.