System.Security.Permissions.UIPermissionWindow Enumeration

Specifies the type of windows that code is allowed to use.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public enum UIPermissionWindow

Remarks

This enumeration is used by System.Security.Permissions.UIPermission.

Members

Member NameDescription
AllWindows

Users can use all windows and user input events without restriction.

NoWindows

Users cannot use any windows or user interface events. No user interface can be used.

SafeSubWindows

Users can only use UIPermissionWindow.SafeSubWindows for drawing, and can only use user input events for user interface within that subwindow. Examples of UIPermissionWindow.SafeSubWindows are a System.Windows.Forms.MessageBox, common dialog controls, and a control displayed within a browser.

SafeTopLevelWindows

Users can only use UIPermissionWindow.SafeTopLevelWindows and UIPermissionWindow.SafeSubWindows for drawing, and can only use user input events for the user interface within those top-level windows and subwindows.

Requirements

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