85 references to SecurityHelper
PresentationFramework (85)
src\Framework\Microsoft\Win32\CommonDialog.cs (1)
302
SecurityHelper
.DemandUIWindowPermission();
src\Framework\Microsoft\Win32\FileDialog.cs (13)
46
using SecurityHelper=MS.Internal.PresentationFramework.
SecurityHelper
;
110
SecurityHelper
.DemandUnrestrictedFileIOPermission();
171
SecurityHelper
.DemandUnrestrictedFileIOPermission();
206
SecurityHelper
.DemandUnrestrictedFileIOPermission();
235
SecurityHelper
.DemandUnrestrictedFileIOPermission();
301
SecurityHelper
.DemandUnrestrictedFileIOPermission();
395
SecurityHelper
.DemandUnrestrictedFileIOPermission();
401
SecurityHelper
.DemandUnrestrictedFileIOPermission();
436
SecurityHelper
.DemandUnrestrictedFileIOPermission();
553
SecurityHelper
.DemandUnrestrictedFileIOPermission();
582
SecurityHelper
.DemandUnrestrictedFileIOPermission();
610
SecurityHelper
.DemandUnrestrictedFileIOPermission();
641
SecurityHelper
.DemandUnrestrictedFileIOPermission();
src\Framework\Microsoft\Win32\OpenFileDialog.cs (4)
91
SecurityHelper
.DemandFileDialogOpenPermission();
145
SecurityHelper
.DemandFileDialogOpenPermission();
202
SecurityHelper
.DemandUnrestrictedFileIOPermission();
338
SecurityHelper
.DemandFileDialogOpenPermission();
src\Framework\Microsoft\Win32\SaveFileDialog.cs (5)
91
SecurityHelper
.DemandUIWindowPermission();
130
SecurityHelper
.DemandUIWindowPermission();
179
SecurityHelper
.DemandUIWindowPermission();
210
SecurityHelper
.DemandUIWindowPermission();
411
SecurityHelper
.DemandUIWindowPermission();
src\Framework\MS\Internal\AppModel\AppModelKnownContentFactory.cs (2)
87
if (
SecurityHelper
.AreStringTypesEqual(baseUri.Scheme, BaseUriHelper.PackAppBaseUri.Scheme))
140
if (
SecurityHelper
.AreStringTypesEqual(baseUri.Scheme, BaseUriHelper.PackAppBaseUri.Scheme))
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (1)
128
MS.Internal.PresentationFramework.
SecurityHelper
.CallerHasUserInitiatedNavigationPermission()) &&
src\Framework\MS\Internal\AppModel\IconHelper.cs (1)
95
SecurityHelper
.DemandUIWindowPermission();
src\Framework\MS\Internal\AppModel\XappLauncher.cs (8)
120
SecurityHelper
.DemandUIWindowPermission();
305
SecurityHelper
.DemandUnmanagedCode();
621
SecurityHelper
.DemandUIWindowPermission();
673
SecurityHelper
.DemandUIWindowPermission();
780
SecurityHelper
.DemandUIWindowPermission();
859
SecurityHelper
.DemandUIWindowPermission();
1036
SecurityHelper
.DemandUIWindowPermission();
1109
SecurityHelper
.DemandUnmanagedCode();
src\Framework\MS\Internal\Controls\WebBrowserEvent.cs (1)
135
!
SecurityHelper
.CallerHasWebPermission(source) &&
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
308
PresentationFramework.
SecurityHelper
.ShowMessageBoxHelper(
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
347
if (!
SecurityHelper
.CheckUnmanagedCodePermission())
src\Framework\MS\Internal\IO\Packaging\ManagedFilter.cs (1)
133
SecurityHelper
.DemandUnmanagedCode();
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2281
MS.Internal.PresentationFramework.
SecurityHelper
.ShowMessageBoxHelper(
src\Framework\System\Windows\Controls\Frame.cs (4)
42
using SecurityHelper=MS.Internal.PresentationFramework.
SecurityHelper
;
394
SecurityHelper
.ThrowExceptionIfSettingTrueInPartialTrust(ref fSandBox);
410
SecurityHelper
.ThrowExceptionIfSettingTrueInPartialTrust(ref fSandBox);
423
SecurityHelper
.ThrowExceptionIfSettingTrueInPartialTrust(ref fSandBox);
src\Framework\System\Windows\Controls\PrintDialog.cs (5)
233
SecurityHelper
.DemandPrintDialogPermissions();
245
SecurityHelper
.DemandPrintDialogPermissions();
268
SecurityHelper
.DemandPrintDialogPermissions();
280
SecurityHelper
.DemandPrintDialogPermissions();
712
SecurityHelper
.DemandPrintDialogPermissions();
src\Framework\System\Windows\Controls\WebBrowser.cs (4)
43
using SecurityHelperPF=MS.Internal.PresentationFramework.
SecurityHelper
;
130
SecurityHelperPF
.DemandWebBrowserPermission();
170
SecurityHelperPF
.DemandWebBrowserPermission();
1378
!
SecurityHelperPF
.CallerAndAppDomainHaveUnrestrictedWebBrowserPermission();
src\Framework\System\Windows\Documents\Hyperlink.cs (2)
27
using SecurityHelper=MS.Internal.PresentationFramework.
SecurityHelper
;
1168
CodeAccessPermission perm =
SecurityHelper
.CreateUserInitiatedNavigationPermission();
src\Framework\System\Windows\Documents\Serialization\SerializerDescriptor.cs (3)
82
SecurityHelper
.DemandPlugInSerializerPermissions();
143
SecurityHelper
.DemandPlugInSerializerPermissions();
191
SecurityHelper
.DemandPlugInSerializerPermissions();
src\Framework\System\Windows\Documents\Serialization\SerializerProvider.cs (5)
58
SecurityHelper
.DemandPlugInSerializerPermissions();
105
SecurityHelper
.DemandPlugInSerializerPermissions();
141
SecurityHelper
.DemandPlugInSerializerPermissions();
176
SecurityHelper
.DemandPlugInSerializerPermissions();
261
SecurityHelper
.DemandPlugInSerializerPermissions();
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
394
MS.Internal.PresentationFramework.
SecurityHelper
.DemandWebBrowserPermission();
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (6)
38
using SecurityHelper=MS.Internal.PresentationFramework.
SecurityHelper
;
2865
if (
SecurityHelper
.CallerHasMemberAccessReflectionPermission())
2911
if (isPublicProperty ||
SecurityHelper
.CallerHasMemberAccessReflectionPermission())
2949
if (isPublicProperty ||
SecurityHelper
.CallerHasMemberAccessReflectionPermission())
2987
if (
SecurityHelper
.CallerHasMemberAccessReflectionPermission())
3026
if (isPublicEvent ||
SecurityHelper
.CallerHasMemberAccessReflectionPermission())
src\Framework\System\Windows\Markup\XamlWriter.cs (5)
70
SecurityHelper
.DemandUnmanagedCode();
117
SecurityHelper
.DemandUnmanagedCode();
157
SecurityHelper
.DemandUnmanagedCode();
199
SecurityHelper
.DemandUnmanagedCode();
244
SecurityHelper
.DemandUnmanagedCode();
src\Framework\System\Windows\MessageBox.cs (1)
487
SecurityHelper
.DemandUnmanagedCode();
src\Framework\System\Windows\Navigation\NavigationWindow.cs (3)
83
SecurityHelper
.ThrowExceptionIfSettingTrueInPartialTrust(ref fSandBox);
99
SecurityHelper
.ThrowExceptionIfSettingTrueInPartialTrust(ref fSandBox);
111
SecurityHelper
.ThrowExceptionIfSettingTrueInPartialTrust(ref fSandBox);
src\Framework\System\Windows\Standard\ErrorCodes.cs (1)
468
Exception e = MS.Internal.PresentationFramework.
SecurityHelper
.GetExceptionForHR((int)_value);
src\Shared\MS\Internal\SecurityHelper.cs (3)
95
SecurityHelper
.DemandUnmanagedCode();
173
if (value == true && !
SecurityHelper
.CheckUnmanagedCodePermission())
223
SecurityHelper
.DemandWebBrowserPermission();
src\Shared\MS\Utility\BindUriHelper.cs (2)
95
return (
SecurityHelper
.AreStringTypesEqual(first.Scheme, second.Scheme) && first.Host.Equals(second.Host) == true);
173
if (
SecurityHelper
.AreStringTypesEqual(sourceUri.Scheme, destinationUri.Scheme))