92 instantiations of UIPermission
mscorlib (24)
system\console.cs (16)
571new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 622new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 761new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 802new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 829new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 890new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1039new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1099new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1213new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1283new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1325new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1357new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1411new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1643new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1807new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1824new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand();
system\security\cryptography\utils.cs (1)
489UIPermission uiPermission = new UIPermission(UIPermissionWindow.SafeTopLevelWindows);
system\security\permissions\permissionattributes.cs (2)
736return new UIPermission( PermissionState.Unrestricted ); 740return new UIPermission( m_windowFlag, m_clipboardFlag );
system\security\permissions\uipermission.cs (3)
288return new UIPermission(isectWindowFlags, isectClipboardFlags); 311return new UIPermission(isectWindowFlags, isectClipboardFlags); 316return new UIPermission(this.m_windowFlag, this.m_clipboardFlag);
system\security\securitymanager.cs (1)
565new UIPermission(PermissionState.Unrestricted)
system\security\util\xmlutil.cs (1)
255return new UIPermission( permState );
PresentationCore (12)
Core\CSharp\MS\Internal\Automation\EventMap.cs (1)
304new UIPermission(UIPermissionWindow.AllWindows).Assert();
Core\CSharp\System\Windows\Clipboard.cs (1)
619(new UIPermission(UIPermissionClipboard.AllClipboard)).Assert();//BlessedAssert
Core\CSharp\System\Windows\Input\Command\ApplicationCommands.cs (1)
265permissions.AddPermission(new UIPermission(UIPermissionClipboard.AllClipboard));
Core\CSharp\System\Windows\Input\InputMethod.cs (1)
1763(new UIPermission(UIPermissionWindow.AllWindows)).Assert();//Blessed Assert
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (1)
23(new UIPermission(PermissionState.Unrestricted)).Assert();
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (1)
28(new UIPermission(PermissionState.Unrestricted)).Assert();
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
27(new UIPermission(PermissionState.Unrestricted)).Assert();
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
45(new UIPermission(PermissionState.Unrestricted)).Assert();
Shared\MS\Internal\SecurityHelper.cs (4)
658_uiPermissionAllClipboard = new UIPermission(UIPermissionClipboard.AllClipboard); 997_allWindowsUIPermission = new UIPermission(UIPermissionWindow.AllWindows); 1078_unrestrictedUIPermission = new UIPermission(PermissionState.Unrestricted); 1093_appDomainGrantedUnrestrictedUIPermission = AppDomainHasPermission(new UIPermission(PermissionState.Unrestricted));
PresentationFramework (41)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (1)
340new UIPermission(UIPermissionWindow.AllWindows).Assert();
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
226UIPermission uip = new UIPermission(UIPermissionWindow.AllWindows); 674new UIPermission(PermissionState.Unrestricted).Assert(); //BlessedAssert
src\Framework\MS\Internal\Ink\ISFClipboardData.cs (1)
86(new UIPermission(UIPermissionClipboard.AllClipboard)).Assert();//BlessedAssert
src\Framework\System\Windows\Controls\DataGrid.cs (1)
8347(new UIPermission(UIPermissionClipboard.AllClipboard)).Assert();
src\Framework\System\Windows\Controls\InkCanvas.cs (4)
2149( new UIPermission(UIPermissionClipboard.AllClipboard) ).Assert();//BlessedAssert 2255(new UIPermission(UIPermissionClipboard.AllClipboard)).Assert();//BlessedAssert 2273ps.AddPermission(new UIPermission(UIPermissionClipboard.AllClipboard)); 2610new UIPermission(UIPermissionClipboard.AllClipboard).Assert(); // BlessedAssert:
src\Framework\System\Windows\Controls\Menu.cs (1)
157(new UIPermission(UIPermissionWindow.AllWindows)).Assert(); //Blessed Assert
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
3485new UIPermission(UIPermissionWindow.AllWindows).Assert(); //BlessedAssert 3656new UIPermission(UIPermissionWindow.AllWindows).Assert(); // BlessedAssert:
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
822(new UIPermission(UIPermissionWindow.AllWindows)).Assert(); // Blessed assert
src\Framework\System\windows\Documents\CaretElement.cs (1)
991new UIPermission(UIPermissionWindow.AllWindows).Assert(); //BlessedAssert
src\Framework\System\Windows\Documents\ImmComposition.cs (6)
244new UIPermission(UIPermissionWindow.AllWindows).Assert();//Blessed Assert 327new UIPermission(PermissionState.Unrestricted).Assert(); // BlessedAssert 378new UIPermission(UIPermissionWindow.AllWindows).Assert();//Blessed Assert 398new UIPermission(UIPermissionWindow.AllWindows).Assert();//Blessed Assert 843new UIPermission(UIPermissionWindow.AllWindows).Assert();//Blessed Assert 1924new UIPermission(UIPermissionWindow.AllWindows).Assert();//Blessed Assert
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
242(new UIPermission(UIPermissionClipboard.AllClipboard)).Assert();//BlessedAssert 263ps.AddPermission(new UIPermission(UIPermissionClipboard.AllClipboard));
src\Framework\System\windows\Documents\TextEditorContextMenu.cs (1)
319new UIPermission(UIPermissionWindow.AllWindows).Assert(); // BlessedAssert
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (4)
71new UIPermission(UIPermissionClipboard.AllClipboard).Assert(); //BlessedAssert 105(new UIPermission(UIPermissionClipboard.AllClipboard)).Assert();//BlessedAssert 355new UIPermission(UIPermissionClipboard.OwnClipboard).Demand(); 426new UIPermission(UIPermissionClipboard.OwnClipboard).Demand();
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
693new UIPermission(UIPermissionWindow.AllWindows).Assert(); //BlessedAssert
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1648new UIPermission(UIPermissionWindow.AllWindows).Assert(); // BlessedAssert
src\Framework\System\Windows\Documents\TextStore.cs (2)
2510new UIPermission(UIPermissionWindow.AllWindows).Assert(); // BlessedAssert 3237(new UIPermission(UIPermissionWindow.AllWindows)).Assert();//BlessedAssert
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
365(new UIPermission(PermissionState.Unrestricted)).Assert(); // Blessed assert
src\Framework\System\Windows\Interop\DocobjHost.cs (4)
953permissionSet.AddPermission(new UIPermission(UIPermissionWindow.SafeTopLevelWindows)); 954permissionSet.AddPermission(new UIPermission(UIPermissionClipboard.OwnClipboard)); 987permissionSet.AddPermission(new UIPermission(UIPermissionWindow.SafeTopLevelWindows)); 988permissionSet.AddPermission(new UIPermission(UIPermissionClipboard.OwnClipboard));
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1035new UIPermission(PermissionState.Unrestricted).Assert(); //BlessedAssert: 1060new UIPermission(PermissionState.Unrestricted).Assert(); //BlessedAssert:
src\Framework\System\Windows\Window.cs (1)
5880(new UIPermission(UIPermissionWindow.AllWindows)).Assert();
src\Shared\MS\Internal\SecurityHelper.cs (2)
997_allWindowsUIPermission = new UIPermission(UIPermissionWindow.AllWindows); 1078_unrestrictedUIPermission = new UIPermission(PermissionState.Unrestricted);
System (2)
compmod\system\diagnostics\DefaultTraceListener.cs (1)
220new UIPermission(UIPermissionWindow.SafeSubWindows).Demand();
sys\system\Media\SoundPlayer.cs (1)
731safeSubWindows = new UIPermission(UIPermissionWindow.SafeSubWindows);
System.Drawing (3)
commonui\System\Drawing\Graphics.cs (1)
915(new System.Security.Permissions.UIPermission(System.Security.Permissions.UIPermissionWindow.AllWindows)).Demand();
commonui\System\Drawing\IntSecurity.cs (2)
10private static readonly UIPermission AllWindows = new UIPermission(UIPermissionWindow.AllWindows); 11private static readonly UIPermission SafeSubWindows = new UIPermission(UIPermissionWindow.SafeSubWindows);
System.Security (2)
system\security\cryptography\cryptoapi.cs (2)
2879UIPermission uiPermission = new UIPermission(UIPermissionWindow.SafeTopLevelWindows); 2895UIPermission uiPermission = new UIPermission(UIPermissionWindow.SafeTopLevelWindows);
System.Windows.Forms (5)
winforms\Managed\System\WinForms\WinFormsSecurity.cs (5)
136allWindows = new UIPermission(UIPermissionWindow.AllWindows); 145clipboardRead = new UIPermission(UIPermissionClipboard.AllClipboard); 154clipboardOwn = new UIPermission(UIPermissionClipboard.OwnClipboard); 351safeSubWindows = new UIPermission(UIPermissionWindow.SafeSubWindows); 360safeTopLevelWindows = new UIPermission(UIPermissionWindow.SafeTopLevelWindows);
WindowsBase (3)
Shared\MS\Internal\SecurityHelper.cs (2)
997_allWindowsUIPermission = new UIPermission(UIPermissionWindow.AllWindows); 1078_unrestrictedUIPermission = new UIPermission(PermissionState.Unrestricted);
Shared\MS\Win32\HwndWrapper.cs (1)
169new UIPermission(UIPermissionWindow.AllWindows).Assert(); //BlessedAssert to call Dispose
47 references to UIPermission
mscorlib (8)
system\security\cryptography\utils.cs (1)
489UIPermission uiPermission = new UIPermission(UIPermissionWindow.SafeTopLevelWindows);
system\security\permissions\uipermission.cs (7)
250UIPermission operand = (UIPermission)target; 282UIPermission operand = (UIPermission)target; 305UIPermission operand = (UIPermission)target; 366return UIPermission.GetTokenIndex();
PresentationCore (10)
Core\CSharp\MS\Internal\Automation\EventMap.cs (1)
313UIPermission.RevertAssert();
Core\CSharp\System\Windows\Clipboard.cs (1)
626UIPermission.RevertAssert();
Core\CSharp\System\Windows\Input\InputMethod.cs (1)
1770UIPermission.RevertAssert();
Core\CSharp\System\Windows\Interop\HwndAppCommandInputProvider.cs (1)
30UIPermission.RevertAssert();
Core\CSharp\System\Windows\Interop\HwndKeyboardInputProvider.cs (1)
35UIPermission.RevertAssert();
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
35UIPermission.RevertAssert();
Core\CSharp\System\Windows\Interop\HwndStylusInputProvider.cs (1)
55UIPermission.RevertAssert();
Shared\MS\Internal\SecurityHelper.cs (3)
662static UIPermission _uiPermissionAllClipboard = null; 1001static UIPermission _allWindowsUIPermission = null; 1082static UIPermission _unrestrictedUIPermission = null;
PresentationFramework (23)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
226UIPermission uip = new UIPermission(UIPermissionWindow.AllWindows); 685UIPermission.RevertAll();
src\Framework\MS\Internal\Ink\ISFClipboardData.cs (1)
93UIPermission.RevertAssert();
src\Framework\System\Windows\Controls\DataGrid.cs (1)
8354UIPermission.RevertAssert();
src\Framework\System\Windows\Controls\InkCanvas.cs (2)
2156UIPermission.RevertAssert(); 2262UIPermission.RevertAssert();
src\Framework\System\Windows\Controls\Menu.cs (1)
164UIPermission.RevertAssert();
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
3493UIPermission.RevertAssert(); 3665UIPermission.RevertAssert();
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
829UIPermission.RevertAssert();
src\Framework\System\windows\Documents\CaretElement.cs (1)
999UIPermission.RevertAssert();
src\Framework\System\Windows\Documents\ImmComposition.cs (3)
335UIPermission.RevertAssert(); 385UIPermission.RevertAssert(); 405UIPermission.RevertAssert();
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
257UIPermission.RevertAssert();
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (1)
112UIPermission.RevertAssert();
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
701UIPermission.RevertAssert();
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
1655UIPermission.RevertAssert();
src\Framework\System\Windows\Documents\TextStore.cs (1)
3244UIPermission.RevertAssert();
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
373UIPermission.RevertAssert();
src\Framework\System\Windows\Window.cs (1)
5890UIPermission.RevertAssert();
src\Shared\MS\Internal\SecurityHelper.cs (2)
1001static UIPermission _allWindowsUIPermission = null; 1082static UIPermission _unrestrictedUIPermission = null;
System.Drawing (2)
commonui\System\Drawing\IntSecurity.cs (2)
10private static readonly UIPermission AllWindows = new UIPermission(UIPermissionWindow.AllWindows); 11private static readonly UIPermission SafeSubWindows = new UIPermission(UIPermissionWindow.SafeSubWindows);
System.Security (2)
system\security\cryptography\cryptoapi.cs (2)
2879UIPermission uiPermission = new UIPermission(UIPermissionWindow.SafeTopLevelWindows); 2895UIPermission uiPermission = new UIPermission(UIPermissionWindow.SafeTopLevelWindows);
WindowsBase (2)
Shared\MS\Internal\SecurityHelper.cs (2)
1001static UIPermission _allWindowsUIPermission = null; 1082static UIPermission _unrestrictedUIPermission = null;