﻿<?xml version="1.0" encoding="utf-8"?><Type Name="UIPermissionWindow" FullName="System.Security.Permissions.UIPermissionWindow"><TypeSignature Maintainer="auto" Language="C#" Value="public enum UIPermissionWindow" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed UIPermissionWindow extends System.Enum" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Enum</BaseTypeName></Base><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This enumeration is used by <see cref="T:System.Security.Permissions.UIPermission" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Specifies the type of windows that code is allowed to use.</para></summary></Docs><Members><Member MemberName="AllWindows"><MemberSignature Language="C#" Value="AllWindows" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.UIPermissionWindow AllWindows = int32(3)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Permissions.UIPermissionWindow</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Users can use all windows and user input events without restriction.</para></summary></Docs></Member><Member MemberName="NoWindows"><MemberSignature Language="C#" Value="NoWindows" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.UIPermissionWindow NoWindows = int32(0)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Permissions.UIPermissionWindow</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Users cannot use any windows or user interface events. No user interface can be used.</para></summary></Docs></Member><Member MemberName="SafeSubWindows"><MemberSignature Language="C#" Value="SafeSubWindows" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.UIPermissionWindow SafeSubWindows = int32(1)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Permissions.UIPermissionWindow</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Users can only use <see cref="F:System.Security.Permissions.UIPermissionWindow.SafeSubWindows" /> for drawing, and can only use user input events for user interface within that subwindow. Examples of <see cref="F:System.Security.Permissions.UIPermissionWindow.SafeSubWindows" /> are a <see cref="T:System.Windows.Forms.MessageBox" />, common dialog controls, and a control displayed within a browser.</para></summary></Docs></Member><Member MemberName="SafeTopLevelWindows"><MemberSignature Language="C#" Value="SafeTopLevelWindows" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Security.Permissions.UIPermissionWindow SafeTopLevelWindows = int32(2)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.Permissions.UIPermissionWindow</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When it runs under <see cref="F:System.Security.Permissions.UIPermissionWindow.SafeTopLevelWindows" /> permission, your application:</para><para /><list type="bullet"><item><para>Will show the DNS name or IP address of the Web site from which the application was loaded in its title bar.</para></item><item><para>Will display Balloon tool-tip when it first displays, informing the user that it is running under a restricted trust level.</para></item><item><para>Must display its title bar at all times.</para></item><item><para>Must display window controls on its forms.</para></item><item><para>Cannot minimize its main window on startup.</para></item><item><para>Cannot move its windows off-screen.</para></item><item><para>Cannot use the <see cref="P:System.Windows.Forms.Form.Opacity" /> property on <see cref="T:System.Windows.Forms.Form" /> to make its windows less than 50% transparent.</para></item><item><para>Must use only rectangular windows, and must include the window frame. Windows Forms will not honor setting <see cref="P:System.Windows.Forms.Form.FormBorderStyle" /> to None.</para></item><item><para>Cannot make windows invisible. Any attempt by the application to set the <see cref="P:System.Windows.Forms.Control.Visible" /> property on its <see cref="T:System.Windows.Forms.Form" /> objects to False will be ignored.</para></item><item><para>Must have an entry in the Task Bar.</para></item><item><para>Will have its controls prohibited from accessing the <see cref="P:System.Windows.Forms.Control.Parent" /> property. By implication, controls will also be barred from accessing siblings - i.e., other controls at the same level of nesting.</para></item><item><para>Cannot control focus using the <see cref="M:System.Windows.Forms.Control.Focus" /> method.</para></item><item><para>Will have restricted keyboard input access, so that a form or control can only access keyboard events for itself and its children.</para></item><item><para>Will have restricted mouse coordinate access, so that a form or control can only read mouse coordinates if the mouse is over its visible area.</para></item><item><para>Cannot set the <see cref="P:System.Windows.Forms.Form.TopMost" /> property.</para></item><item><para>Cannot control the z-order of controls on the form using the <see cref="M:System.Windows.Forms.Control.BringToFront" /> and <see cref="M:System.Windows.Forms.Control.SendToBack" /> methods.</para></item></list><para>These restrictions help prevent potentially harmful code from spoofing attacks, such as imitating trusted system dialogs.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Users can only use <see cref="F:System.Security.Permissions.UIPermissionWindow.SafeTopLevelWindows" /> and <see cref="F:System.Security.Permissions.UIPermissionWindow.SafeSubWindows" /> for drawing, and can only use user input events for the user interface within those top-level windows and subwindows. </para></summary></Docs></Member></Members></Type>