204 references to SecurityPermission
mscorlib (47)
microsoft\win32\registrykey.cs (1)
2079
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\appdomain.cs (1)
3437
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
system\appdomainmanager.cs (1)
68
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
system\cfgparser.cs (1)
277
(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)).Assert();
system\console.cs (3)
1911
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
1932
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
1955
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\diagnostics\debugger.cs (3)
77
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
101
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
133
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\diagnostics\stacktrace.cs (1)
135
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
system\exception.cs (1)
916
SecurityPermission sp= new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence | SecurityPermissionFlag.ControlPolicy);
system\io\directory.cs (2)
1019
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
1186
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\io\filestream.cs (1)
911
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
system\io\isolatedstorage\isolatedstorage.cs (1)
336
s_PermControlEvidence = new
SecurityPermission
(
system\io\unmanagedmemorystream.cs (2)
168
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
247
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\reflection\assembly.cs (3)
1840
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
2019
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
2089
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
system\reflection\ConstructorInfo.cs (2)
626
new
SecurityPermission
(SecurityPermissionFlag.SkipVerification).Demand();
734
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\reflection\emit\assemblybuilder.cs (2)
353
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
717
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\reflection\emit\dynamicmethod.cs (1)
794
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
system\rttype.cs (2)
5305
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
5392
ps.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
system\runtime\remoting\activationservices.cs (1)
306
SecurityPermission remotingInfrastructurePermission = new
SecurityPermission
(SecurityPermissionFlag.Infrastructure);
system\security\accesscontrol\win32.cs (2)
95
new
SecurityPermission
( SecurityPermissionFlag.UnmanagedCode ).Demand();
261
new
SecurityPermission
( SecurityPermissionFlag.UnmanagedCode ).Demand();
system\security\codeaccesssecurityengine.cs (2)
99
AssertPermission = new
SecurityPermission
(SecurityPermissionFlag.Assertion);
746
SecurityPermission executionPermission = new
SecurityPermission
(SecurityPermissionFlag.Execution);
system\security\permissions\permissionattributes.cs (1)
700
return new
SecurityPermission
( m_flag );
system\security\permissions\principalpermission.cs (1)
465
new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal).Assert();
system\security\permissions\securitypermission.cs (3)
186
return(new
SecurityPermission
(flag_union));
231
return new
SecurityPermission
(isectFlags);
240
return new
SecurityPermission
((SecurityPermissionFlag)m_flags);
system\security\policy\evidence.cs (6)
365
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
481
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
597
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
812
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
1433
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
1463
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
system\security\policy\pefileevidencefactory.cs (1)
153
new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter).Assert();
system\security\securityexception.cs (1)
619
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence | SecurityPermissionFlag.ControlPolicy).Demand();
system\security\securitymanager.cs (1)
440
executionSecurityPermission = new
SecurityPermission
(SecurityPermissionFlag.Execution);
PresentationCore (21)
Core\CSharp\MS\Internal\AppModel\CustomCredentialPolicy.cs (1)
85
new
SecurityPermission
(SecurityPermissionFlag.ControlPolicy).Assert(); // BlessedAssert:
Core\CSharp\MS\Internal\AppModel\SiteOfOriginContainer.cs (2)
300
SecurityPermission p1 = new
SecurityPermission
(SecurityPermissionFlag.ControlDomainPolicy);
311
SecurityPermission p2 = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (1)
1084
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); //Blessed Assert
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
443
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); //Blessed Assert
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
231
(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)).Demand();
Core\CSharp\System\Windows\DataObject.cs (3)
3659
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert
3679
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert
3698
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert
Core\CSharp\System\Windows\Input\InputMethod.cs (1)
1922
SecurityPermission sp = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
Core\CSharp\System\Windows\Input\MouseDevice.cs (1)
2199
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert:
Core\CSharp\System\Windows\Input\TextCompositionManager.cs (1)
491
SecurityPermission sp = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
Core\CSharp\System\Windows\Interop\HwndSource.cs (3)
387
SecurityHelper.CallerHasPermissionWithAppDomainOptimization(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)))
2125
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
2897
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1599
unpackPermissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter | SecurityPermissionFlag.UnmanagedCode | SecurityPermissionFlag.RemotingConfiguration));
Core\CSharp\System\Windows\Media\Imaging\BitmapDownload.cs (1)
151
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert
Core\CSharp\System\Windows\Media\MediaContextNotificationWindow.cs (1)
264
(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)).Assert();
Shared\MS\Internal\SecurityHelper.cs (3)
113
_unmanagedCodePermission = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
612
_serializationSecurityPermission = new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter);
1012
_infrastructurePermission = new
SecurityPermission
( SecurityPermissionFlag.Infrastructure );
PresentationFramework (27)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (2)
634
new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter).Assert();
848
new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter).Demand();
src\Framework\MS\Internal\AppModel\AppSecurityManager.cs (3)
455
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert:
500
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert:
526
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert:
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (1)
79
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();//BlessedAssert
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (1)
280
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert:
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
687
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); //BlessedAssert
src\Framework\MS\Internal\DataStreams.cs (2)
163
new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter).Assert();
295
new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter).Demand(); // prevent any journal metadata de-serialization in partial trust
src\Framework\System\Windows\Controls\DataGrid.cs (1)
8363
(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter | SecurityPermissionFlag.UnmanagedCode)).Assert();
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
785
permissions.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2272
ps.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter));
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
2792
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); //Blessed Assert
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
92
if (!SecurityHelper.CallerHasPermissionWithAppDomainOptimization(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)))
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1463
(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)).Assert();
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
1940
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();//Blessed Assert
src\Framework\System\Windows\Documents\RubberbandSelector.cs (3)
190
(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter | SecurityPermissionFlag.UnmanagedCode)).Demand();
262
ps.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter));
264
ps.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
src\Framework\System\Windows\Documents\TextServicesHost.cs (1)
282
SecurityPermission secperm = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
1174
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert
src\Framework\System\Windows\Interop\DocobjHost.cs (2)
952
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
986
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
src\Shared\MS\Internal\SecurityHelper.cs (3)
113
_unmanagedCodePermission = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
1183
(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)).Assert();
1223
(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode)).Assert();
System (47)
compmod\microsoft\csharp\csharpcodeprovider.cs (8)
3374
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
3380
SecurityPermission perm1 = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
3490
SecurityPermission perm = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
3652
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
3674
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
3696
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
3719
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
3795
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\microsoft\visualbasic\VBCodeProvider.cs (3)
2805
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
2811
SecurityPermission perm1 = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
2914
SecurityPermission perm = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
compmod\system\codedom\compiler\CodeCompiler.cs (8)
180
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
202
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
224
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
247
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
323
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
329
SecurityPermission perm1 = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
407
SecurityPermission perm = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
487
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\system\componentmodel\IntSecurity.cs (1)
14
public static readonly CodeAccessPermission UnmanagedCode = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
compmod\system\diagnostics\ListenerElementsCollection.cs (1)
52
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\system\diagnostics\Trace.cs (2)
34
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
116
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\system\diagnostics\TraceEventCache.cs (1)
80
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
net\System\Net\_AutoWebProxyScriptWrapper.cs (2)
598
perms.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
618
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
net\System\Net\Configuration\DefaultProxySection.cs (2)
169
new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal | SecurityPermissionFlag.UnmanagedCode).Assert();
215
new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal | SecurityPermissionFlag.UnmanagedCode).Assert();
net\System\Net\HttpListener.cs (2)
403
new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal).Demand();
443
new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal).Demand();
net\System\Net\HttpListenerContext.cs (1)
78
new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal).Demand();
net\System\Net\Internal.cs (4)
949
internal static readonly SecurityPermission UnmanagedPermission = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
951
internal static readonly SecurityPermission InfrastructurePermission = new
SecurityPermission
(SecurityPermissionFlag.Infrastructure);
952
internal static readonly SecurityPermission ControlPolicyPermission = new
SecurityPermission
(SecurityPermissionFlag.ControlPolicy);
953
internal static readonly SecurityPermission ControlPrincipalPermission = new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal);
net\System\Net\SecureProtocols\NegotiateStream.cs (1)
417
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
services\monitoring\system\diagnosticts\EventLog.cs (2)
85
SecurityPermission securityPermission = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
1040
new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode).Assert();
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (4)
623
ps.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
960
ps.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
1145
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
1192
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
services\monitoring\system\diagnosticts\ProcessManager.cs (1)
748
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (3)
49
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
938
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
1552
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
sys\system\io\ports\SerialPort.cs (1)
832
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
System.Activities (1)
System\Activities\Debugger\StateManager.cs (1)
716
unmanagedCodePermissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
System.AddIn (12)
System\Addin\Hosting\AddInEnvironment.cs (1)
91
SecurityPermission permission = new
SecurityPermission
(SecurityPermissionFlag.ControlAppDomain);
System\Addin\Hosting\AddInIpcChannel.cs (2)
123
new System.Security.Permissions.
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter | SecurityPermissionFlag.UnmanagedCode).Assert();
288
new System.Security.Permissions.
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter | SecurityPermissionFlag.UnmanagedCode).Assert();
System\Addin\Hosting\AddInServer.cs (4)
121
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal));
122
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
140
new
SecurityPermission
(SecurityPermissionFlag.ControlAppDomain).Assert();
172
SecurityPermission permission = new
SecurityPermission
(SecurityPermissionFlag.ControlAppDomain);
System\Addin\Hosting\AddInStore.cs (2)
1022
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter));
1070
new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter).Demand();
System\Addin\Pipeline\ContractBase.cs (3)
174
SecurityPermission permission = new
SecurityPermission
(SecurityPermissionFlag.ControlThread);
201
SecurityPermission permission = new
SecurityPermission
(SecurityPermissionFlag.ControlAppDomain);
273
SecurityPermission permission = new
SecurityPermission
(SecurityPermissionFlag.RemotingConfiguration);
System.Configuration (2)
System\Configuration\ClientConfigPaths.cs (2)
307
s_controlEvidencePerm = new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence);
316
s_serializationPerm = new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter);
System.Core (6)
System\IO\Pipes\PipeStream.cs (1)
159
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
System\Security\Cryptography\ECDiffieHellmanCng.cs (2)
95
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
357
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
System\Security\Cryptography\ECDsaCng.cs (3)
76
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
319
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
415
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
System.Data (5)
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (2)
168
permissionSet.AddPermission(new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode));
192
permissionSet.AddPermission(new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode));
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (1)
216
permissionSet.AddPermission(new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode));
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1789
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand(); // MDAC 66682, 69017
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
783
SecurityPermission sp = new
SecurityPermission
( SecurityPermissionFlag.UnmanagedCode );
System.Data.Entity (1)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1614
serializationFormatterPermissions.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter));
System.Data.SqlXml (2)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
51
CreateModulePermissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence | SecurityPermissionFlag.UnmanagedCode));
System\Xml\Xsl\XsltOld\Compiler.cs (1)
790
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Assert();
System.Drawing (2)
commonui\System\Drawing\Advanced\Font.cs (1)
561
new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode).Assert();
commonui\System\Drawing\IntSecurity.cs (1)
13
public static readonly CodeAccessPermission UnmanagedCode = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
System.Management (1)
Instrumentation\Instrumentation.cs (1)
24
internal static readonly SecurityPermission UnmanagedCode = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
System.Runtime.Remoting (2)
channels\sinks\binaryformattersinks.cs (1)
574
currentPermissionSet.SetPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter));
channels\sinks\soapformattersinks.cs (1)
642
currentPermissionSet.SetPermission(new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter));
System.Runtime.Serialization (1)
System\Runtime\Serialization\Globals.cs (1)
1119
serializationFormatterPermission = new
SecurityPermission
(SecurityPermissionFlag.SerializationFormatter);
System.ServiceModel (1)
System\ServiceModel\Configuration\ServiceHostingEnvironmentSection.cs (1)
33
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Demand();
System.Web (7)
IntSecurity.cs (3)
36
_unmanagedCode = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
46
_controlPrincipal = new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal);
76
_controlThread = new
SecurityPermission
(SecurityPermissionFlag.ControlThread);
UI\WebParts\ImportCatalogPart.cs (2)
175
pset.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
219
mediumPset.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
UI\WebParts\WebPartManager.cs (2)
465
_mediumPermissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
478
_minimalPermissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.Execution));
System.Web.DataVisualization (1)
Common\General\Chart.cs (1)
256
System.Security.Permissions.SecurityPermission securityPermission = new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode);
System.Web.Services (1)
System\Web\Services\Protocols\ServerType.cs (1)
33
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Assert();
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Application.cs (1)
3276
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
winforms\Managed\System\WinForms\Cursor.cs (1)
626
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
winforms\Managed\System\WinForms\NativeWindow.cs (3)
639
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
867
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
1168
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
winforms\Managed\System\WinForms\WinFormsSecurity.cs (1)
427
unmanagedCode = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
System.Windows.Forms.DataVisualization (1)
Common\General\Chart.cs (1)
256
System.Security.Permissions.SecurityPermission securityPermission = new System.Security.Permissions.
SecurityPermission
(System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode);
System.Xml (3)
System\Xml\Serialization\Compiler.cs (2)
174
perms.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode));
175
perms.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence));
System\Xml\Xslt\XslTransform.cs (1)
123
new
SecurityPermission
(SecurityPermissionFlag.ControlEvidence).Demand();
WindowsBase (7)
Base\System\Diagnostics\PresentationTraceSources.cs (1)
141
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert
Base\System\IO\Packaging\PackUriHelper.cs (1)
692
SecurityPermission permobj = new
SecurityPermission
(SecurityPermissionFlag.Infrastructure);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
554
permissionSet.AddPermission(new
SecurityPermission
(SecurityPermissionFlag.ControlPrincipal));
Shared\MS\Internal\SecurityHelper.cs (1)
113
_unmanagedCodePermission = new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode);
Shared\MS\Win32\ManagedWndProcTracker.cs (1)
101
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert(); // BlessedAssert:
Shared\MS\Win32\UnsafeNativeMethodsOther.cs (2)
579
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();
619
new
SecurityPermission
(SecurityPermissionFlag.UnmanagedCode).Assert();