UIPermission.UIPermission(UIPermissionClipboard) Constructor

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

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

public UIPermission (
	UIPermissionClipboard clipboardFlag
)
public UIPermission (
	UIPermissionClipboard clipboardFlag
)
public function UIPermission (
	clipboardFlag : UIPermissionClipboard
)
Not applicable.

Parameters

clipboardFlag

One of the UIPermissionClipboard values.

Exception typeCondition

ArgumentException

The clipboardFlag parameter is not a valid UIPermissionClipboard value.

To set both the clipboard and window permissions, use the constructor that takes parameters for both.

The following code example shows the use of the System.Security.Permissions.UIPermission(UIPermissionClipboard) constructor. This example is part of a larger example provided for the UIPermission class.

uiPerm1 = new UIPermission(UIPermissionClipboard.AllClipboard);

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: