NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

UIPermission Class

Controls the ability to use user interface (drawing and user input events in windows), and the ability to use the clipboard.

Object
   CodeAccessPermission
      UIPermission

[Visual Basic]
NotInheritable Public Class UIPermission
   Inherits CodeAccessPermission
   Implements IUnrestrictedPermission
[C#]
public sealed class UIPermission : CodeAccessPermission,
   IUnrestrictedPermission
[C++]
public __gc __sealed class UIPermission : public
   CodeAccessPermission, IUnrestrictedPermission
[JScript]
public class UIPermission extends CodeAccessPermission,
   IUnrestrictedPermission

Remarks

The ability to use windows is unrestricted, limited to "safe" top-level windows, only "safe" subwindows, or no window drawing or user input event access allowed. The "safe" windows are restricted to prevent possible spoofing by malicious code.

The ability to use clipboard is unrestricted, limited to paste only from the same application, or no clipboard access is allowed. The paste limitation prevents malicious code from taking data from the clipboard without user's consent, while still allowing the cut & paste metaphor to operate within an application.

Requirements

Namespace: System.Security.Permissions

Assembly: mscorlib.dll

See Also

UIPermission Members | System.Security.Permissions Namespace