571 references to PermissionState
mscorlib (208)
system\appdomain.cs (7)
540new PermissionSet(PermissionState.Unrestricted).Assert(); 2388new PermissionSet(PermissionState.Unrestricted).Demand(); 2656_applicationTrust = new ApplicationTrust(new PermissionSet(PermissionState.Unrestricted)); 2862IPermission ip = System.Security.Util.XMLUtil.CreatePermission( root, PermissionState.None, false ); 4431return new PermissionSet(PermissionState.Unrestricted); 4477return new PermissionSet(PermissionState.Unrestricted); 4498return new PermissionSet(PermissionState.Unrestricted);
system\bcldebug.cs (1)
358perms.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
system\diagnostics\stackframe.cs (2)
217FileIOPermission perm = new FileIOPermission( PermissionState.None ); 295FileIOPermission perm = new FileIOPermission(PermissionState.None);
system\environment.cs (9)
570(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 667(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 865(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 895new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 975new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1035new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1107new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1235new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 1499FileIOPermission createPermission = new FileIOPermission(PermissionState.None);
system\globalization\japanesecalendar.cs (1)
171PermissionSet permSet = new PermissionSet(PermissionState.None);
system\io\isolatedstorage\isolatedstorage.cs (1)
347PermissionState.Unrestricted);
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1898PermissionState.Unrestricted);
system\io\path.cs (1)
1063new EnvironmentPermission(PermissionState.Unrestricted).Demand();
system\reflection\assembly.cs (1)
1606return new PermissionSet(PermissionState.Unrestricted);
system\reflection\emit\assemblybuilder.cs (3)
360new PermissionSet(PermissionState.Unrestricted).Demand(); 721(new PermissionSet(PermissionState.Unrestricted)).Assert(); 922(new PermissionSet(PermissionState.Unrestricted)).Assert();
system\reflection\emit\modulebuilder.cs (1)
1444new EnvironmentPermission(PermissionState.Unrestricted).Assert();
system\resources\filebasedresourcegroveler.cs (1)
54new System.Security.Permissions.FileIOPermission(System.Security.Permissions.PermissionState.Unrestricted).Assert();
system\resources\resourcewriter.cs (3)
354PermissionSet permSet = new PermissionSet(PermissionState.None); 355permSet.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted)); 356permSet.AddPermission(new FileIOPermission(PermissionState.Unrestricted));
system\rttype.cs (1)
5389PermissionSet ps = new PermissionSet(PermissionState.None);
system\runtime\remoting\configuration.cs (2)
922private static PermissionSet s_fullTrust = new PermissionSet(PermissionState.Unrestricted); 1700new FileIOPermission(PermissionState.Unrestricted).Assert();
system\runtime\remoting\crossappdomainchannel.cs (1)
43private static PermissionSet s_fullTrust = new PermissionSet(PermissionState.Unrestricted);
system\runtime\serialization\formatters\binary\binaryobjectreader.cs (1)
75private static FileIOPermission sfileIOPermission = new FileIOPermission(PermissionState.Unrestricted);
system\security\accesscontrol\filesecurity.cs (2)
463FileIOPermission.QuickDemand(PermissionState.Unrestricted); 661FileIOPermission.QuickDemand(PermissionState.Unrestricted);
system\security\codeaccesssecurityengine.cs (3)
506demandSet = new PermissionSet(PermissionState.Unrestricted); 740grantSet = new PermissionSet(PermissionState.Unrestricted); 771grantSet = new PermissionSet(PermissionState.Unrestricted);
system\security\hostsecuritymanager.cs (2)
173return new PermissionSet(PermissionState.Unrestricted); 181return new PermissionSet(PermissionState.Unrestricted);
system\security\namedpermissionset.cs (2)
63public NamedPermissionSet( String name, PermissionState state) 86: base(PermissionState.None)
system\security\permissions\environmentpermission.cs (7)
82public EnvironmentPermission(PermissionState state) 84if (state == PermissionState.Unrestricted) 86else if (state == PermissionState.None) 276EnvironmentPermission intersectPermission = new EnvironmentPermission(PermissionState.None); 303return new EnvironmentPermission( PermissionState.Unrestricted ); 315EnvironmentPermission unionPermission = new EnvironmentPermission(PermissionState.None); 325EnvironmentPermission copy = new EnvironmentPermission(PermissionState.None);
system\security\permissions\filedialogpermission.cs (3)
42public FileDialogPermission(PermissionState state) { 43if (state == PermissionState.Unrestricted) { 46else if (state == PermissionState.None) {
system\security\permissions\fileiopermission.cs (8)
54public FileIOPermission(PermissionState state) 56if (state == PermissionState.Unrestricted) 60else if (state == PermissionState.None) 698FileIOPermission intersectPermission = new FileIOPermission(PermissionState.None); 726return new FileIOPermission(PermissionState.Unrestricted); 746FileIOPermission unionPermission = new FileIOPermission(PermissionState.None); 760FileIOPermission copy = new FileIOPermission(PermissionState.None); 1044internal static void QuickDemand(PermissionState state)
system\security\permissions\gacidentitypermission.cs (3)
50public GacIdentityPermission(PermissionState state) 52if (state != PermissionState.Unrestricted && state != PermissionState.None)
system\security\permissions\hostprotectionpermission.cs (4)
135return new HostProtectionPermission( PermissionState.Unrestricted ); 169public HostProtectionPermission(PermissionState state) 171if (state == PermissionState.Unrestricted) 173else if (state == PermissionState.None)
system\security\permissions\isolatedstoragefilepermission.cs (5)
21public IsolatedStorageFilePermission(PermissionState state) 52return new IsolatedStorageFilePermission( PermissionState.Unrestricted ); 57union = new IsolatedStorageFilePermission( PermissionState.None ); 121intersection = new IsolatedStorageFilePermission( PermissionState.None ); 141copy = new IsolatedStorageFilePermission(PermissionState.Unrestricted);
system\security\permissions\isolatedstoragepermission.cs (3)
68protected IsolatedStoragePermission(PermissionState state) 70if (state == PermissionState.Unrestricted) 78else if (state == PermissionState.None)
system\security\permissions\keycontainerpermission.cs (4)
376public KeyContainerPermission (PermissionState state) { 377if (state == PermissionState.Unrestricted) 379else if (state == PermissionState.None) 510return new KeyContainerPermission(PermissionState.Unrestricted);
system\security\permissions\permissionattributes.cs (26)
174return new EnvironmentPermission(PermissionState.Unrestricted); 178EnvironmentPermission perm = new EnvironmentPermission(PermissionState.None); 220return new FileDialogPermission( PermissionState.Unrestricted ); 309return new FileIOPermission(PermissionState.Unrestricted); 313FileIOPermission perm = new FileIOPermission(PermissionState.None); 386return new KeyContainerPermission(PermissionState.Unrestricted); 444return new PrincipalPermission( PermissionState.Unrestricted ); 506return new ReflectionPermission( PermissionState.Unrestricted ); 577return new RegistryPermission( PermissionState.Unrestricted ); 581RegistryPermission perm = new RegistryPermission(PermissionState.None); 696return new SecurityPermission( PermissionState.Unrestricted ); 736return new UIPermission( PermissionState.Unrestricted ); 770return new ZoneIdentityPermission(PermissionState.Unrestricted); 819return new StrongNameIdentityPermission( PermissionState.Unrestricted ); 824return new StrongNameIdentityPermission( PermissionState.None ); 865return new SiteIdentityPermission( PermissionState.Unrestricted ); 870return new SiteIdentityPermission( PermissionState.None ); 901return new UrlIdentityPermission( PermissionState.Unrestricted ); 906return new UrlIdentityPermission( PermissionState.None ); 956return new PublisherIdentityPermission( PermissionState.Unrestricted ); 974return new PublisherIdentityPermission( PermissionState.None ); 1067(PermissionState.Unrestricted); 1069p = new IsolatedStorageFilePermission(PermissionState.None); 1170PermissionSet permSet = new PermissionSet( PermissionState.None ); 1185return new PermissionSet( PermissionState.Unrestricted ); 1201return new PermissionSet( PermissionState.None );
system\security\permissions\principalpermission.cs (4)
126public PrincipalPermission( PermissionState state ) 128if (state == PermissionState.Unrestricted) 136else if (state == PermissionState.None) 387return new PrincipalPermission( PermissionState.Unrestricted );
system\security\permissions\publisheridentitypermission.cs (8)
41public PublisherIdentityPermission(PermissionState state) 43if (state == PermissionState.Unrestricted) 47else if (state == PermissionState.None) 122PublisherIdentityPermission perm = new PublisherIdentityPermission(PermissionState.None); 185PublisherIdentityPermission res = new PublisherIdentityPermission(PermissionState.None); 206PublisherIdentityPermission result = new PublisherIdentityPermission(PermissionState.None); 224PublisherIdentityPermission res = new PublisherIdentityPermission(PermissionState.None); 253PublisherIdentityPermission result = new PublisherIdentityPermission(PermissionState.None);
system\security\permissions\reflectionpermission.cs (5)
59public ReflectionPermission(PermissionState state) 61if (state == PermissionState.Unrestricted) 65else if (state == PermissionState.None) 185return new ReflectionPermission( PermissionState.Unrestricted ); 249return new ReflectionPermission(PermissionState.Unrestricted);
system\security\permissions\registrypermission.cs (7)
49public RegistryPermission(PermissionState state) 51if (state == PermissionState.Unrestricted) 55else if (state == PermissionState.None) 309RegistryPermission intersectPermission = new RegistryPermission(PermissionState.None); 339return new RegistryPermission( PermissionState.Unrestricted ); 357RegistryPermission unionPermission = new RegistryPermission(PermissionState.None); 371RegistryPermission copy = new RegistryPermission(PermissionState.None);
system\security\permissions\securitypermission.cs (6)
68public SecurityPermission(PermissionState state) 70if (state == PermissionState.Unrestricted) 74else if (state == PermissionState.None) 181return(new SecurityPermission(PermissionState.Unrestricted)); 209return new SecurityPermission(PermissionState.Unrestricted); 237return new SecurityPermission(PermissionState.Unrestricted);
system\security\permissions\siteidentitypermission.cs (8)
94public SiteIdentityPermission(PermissionState state) 96if (state == PermissionState.Unrestricted) 100else if (state == PermissionState.None) 161SiteIdentityPermission perm = new SiteIdentityPermission( PermissionState.None ); 224SiteIdentityPermission res = new SiteIdentityPermission(PermissionState.None); 246SiteIdentityPermission result = new SiteIdentityPermission(PermissionState.None); 264SiteIdentityPermission res = new SiteIdentityPermission(PermissionState.None); 293SiteIdentityPermission result = new SiteIdentityPermission(PermissionState.None);
system\security\permissions\strongnameidentitypermission.cs (8)
126public StrongNameIdentityPermission(PermissionState state) 128if (state == PermissionState.Unrestricted) 132else if (state == PermissionState.None) 260StrongNameIdentityPermission perm = new StrongNameIdentityPermission(PermissionState.None); 325StrongNameIdentityPermission res = new StrongNameIdentityPermission(PermissionState.None); 347StrongNameIdentityPermission result = new StrongNameIdentityPermission(PermissionState.None); 365StrongNameIdentityPermission res = new StrongNameIdentityPermission(PermissionState.None); 394StrongNameIdentityPermission result = new StrongNameIdentityPermission(PermissionState.None);
system\security\permissions\uipermission.cs (3)
77public UIPermission(PermissionState state) 79if (state == PermissionState.Unrestricted) 83else if (state == PermissionState.None)
system\security\permissions\urlidentitypermission.cs (8)
97public UrlIdentityPermission(PermissionState state) 99if (state == PermissionState.Unrestricted) 103else if (state == PermissionState.None) 192UrlIdentityPermission perm = new UrlIdentityPermission( PermissionState.None ); 255UrlIdentityPermission res = new UrlIdentityPermission(PermissionState.None); 277UrlIdentityPermission result = new UrlIdentityPermission(PermissionState.None); 295UrlIdentityPermission res = new UrlIdentityPermission(PermissionState.None); 324UrlIdentityPermission result = new UrlIdentityPermission(PermissionState.None);
system\security\permissions\zoneidentitypermission.cs (3)
103public ZoneIdentityPermission(PermissionState state) 105if (state == PermissionState.Unrestricted) 109else if (state == PermissionState.None)
system\security\permissionset.cs (5)
199public PermissionSet(PermissionState state) 202if (state == PermissionState.Unrestricted) 206else if (state == PermissionState.None) 471objs[0] = PermissionState.Unrestricted; 2044finalPerm = XMLUtil.CreatePermission( GetPermissionElement((SecurityElement)enumerator.Current), PermissionState.Unrestricted, ignoreTypeLoadFailures );
system\security\permissiontoken.cs (2)
160s_reflectPerm = new ReflectionPermission(PermissionState.Unrestricted); 248s_reflectPerm = new ReflectionPermission(PermissionState.Unrestricted);
system\security\policy\applicationsecurityinfo.cs (1)
94PermissionSet defaultRequest = new PermissionSet(PermissionState.None);
system\security\policy\applicationtrust.cs (2)
76public ApplicationTrust () : this (new PermissionSet(PermissionState.None)) 135return new PolicyStatement(new PermissionSet(PermissionState.None));
system\security\policy\filecodegroup.cs (1)
125PermissionSet permSet = new PermissionSet(PermissionState.None);
system\security\policy\policystatement.cs (8)
391m_permSet = new PermissionSet( PermissionState.None ); 410m_permSet = new NamedPermissionSet( "DefaultName", PermissionState.None ); 412m_permSet = new PermissionSet( PermissionState.None ); 433m_permSet = new PermissionSet( PermissionState.None ); 468m_permSet = new PermissionSet( PermissionState.None ); 496m_permSet = new NamedPermissionSet( "DefaultName", PermissionState.None ); 498m_permSet = new PermissionSet( PermissionState.None ); 509m_permSet = new PermissionSet( PermissionState.None );
system\security\policymanager.cs (1)
166grant = new PermissionSet(PermissionState.None);
system\security\securityelement.cs (2)
837IPermission ip = XMLUtil.CreatePermission( this, PermissionState.None, ignoreTypeLoadFailures ); 856PermissionSet pset = new PermissionSet(PermissionState.None);
system\security\securitymanager.cs (11)
101return new PermissionSet(PermissionState.None); 106return new PermissionSet(PermissionState.Unrestricted); 148return new PermissionSet(PermissionState.None); 182FileIOPermission perm = new FileIOPermission( PermissionState.None ); 361return new PermissionSet(PermissionState.Unrestricted); 560new EnvironmentPermission(PermissionState.Unrestricted), 561new FileDialogPermission(PermissionState.Unrestricted), 562new FileIOPermission(PermissionState.Unrestricted), 563new ReflectionPermission(PermissionState.Unrestricted), 564new SecurityPermission(PermissionState.Unrestricted), 565new UIPermission(PermissionState.Unrestricted)
system\security\util\xmlutil.cs (2)
26using PermissionState = System.Security.Permissions.PermissionState; 206CreatePermission (SecurityElement el, PermissionState permState, bool ignoreTypeLoadFailures)
system\timezoneinfo.cs (4)
929PermissionSet permSet = new PermissionSet(PermissionState.None); 1428PermissionSet permSet = new PermissionSet(PermissionState.None); 2483PermissionSet permSet = new PermissionSet(PermissionState.None); 2768PermissionSet permSet = new PermissionSet(PermissionState.None);
PresentationCore (25)
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
385permissionSet.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
526new WebPermission(PermissionState.Unrestricted).Assert(); // Blessed
Core\CSharp\MS\Internal\IO\Packaging\NetStream.cs (1)
649new WebPermission(PermissionState.Unrestricted).Assert(); // Blessed
Core\CSharp\System\Windows\Clipboard.cs (1)
732permissionSetSource = new System.Security.PermissionSet(PermissionState.None);
Core\CSharp\System\Windows\Input\Command\ApplicationCommands.cs (1)
264permissions = new PermissionSet(PermissionState.None);
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();
Core\CSharp\System\Windows\Interop\HwndTarget.cs (3)
1597PermissionSet unpackPermissionSet = new PermissionSet(PermissionState.None); 1600unpackPermissionSet.AddPermission(new System.Net.DnsPermission(PermissionState.Unrestricted)); 1601unpackPermissionSet.AddPermission(new System.Net.SocketPermission(PermissionState.Unrestricted));
Shared\MS\Internal\SecurityHelper.cs (13)
339_fullTrustPermissionSet = new PermissionSet(PermissionState.Unrestricted); 370PermissionSet psToCheck = new PermissionSet(PermissionState.None); 401PermissionSet psToCheck = new PermissionSet(PermissionState.None); 413new FileIOPermission(PermissionState.Unrestricted).Assert();// BlessedAssert 546FileIOPermission permobj = new FileIOPermission(PermissionState.None); 572siteOfOriginReadPermission = new FileIOPermission(PermissionState.Unrestricted); 576siteOfOriginReadPermission = new WebPermission(PermissionState.Unrestricted); 700_unrestrictedEnvironmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 826PermissionSet permissionSet = new PermissionSet(PermissionState.None); 981_unrestrictedRegistryPermission = new RegistryPermission(PermissionState.Unrestricted); 1078_unrestrictedUIPermission = new UIPermission(PermissionState.Unrestricted); 1093_appDomainGrantedUnrestrictedUIPermission = AppDomainHasPermission(new UIPermission(PermissionState.Unrestricted)); 1364_plugInSerializerPermissions = new PermissionSet(PermissionState.Unrestricted);
PresentationFramework (28)
src\Framework\Microsoft\Win32\OpenFileDialog.cs (1)
471new SecurityPermission(PermissionState.Unrestricted).Assert();
src\Framework\Microsoft\Win32\SaveFileDialog.cs (2)
276(new FileIOPermission(PermissionState.Unrestricted)).Assert();//BlessedAssert 413new SecurityPermission(PermissionState.Unrestricted).Assert();
src\Framework\MS\Internal\AppModel\AssemblyFilter.cs (1)
106(new FileIOPermission(PermissionState.Unrestricted)).Assert();//BlessedAssert
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (1)
135permissionSet.AddPermission(new FileIOPermission(PermissionState.Unrestricted));
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
674new UIPermission(PermissionState.Unrestricted).Assert(); //BlessedAssert
src\Framework\MS\Internal\Permissions\UserInitiatedNavigationPermission.cs (2)
40public UserInitiatedNavigationPermission() : this(PermissionState.Unrestricted) 44public UserInitiatedNavigationPermission(PermissionState state): base(state)
src\Framework\System\Windows\Application.cs (1)
2614permissions.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (2)
780FileIOPermission filePermission = new FileIOPermission(PermissionState.None); 784permissions.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2271PermissionSet ps = new PermissionSet(PermissionState.None);
src\Framework\System\Windows\Controls\WebBrowser.cs (1)
1222(new System.Net.WebPermission(PermissionState.Unrestricted)).Demand();
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
883(new System.Net.WebPermission(PermissionState.Unrestricted)).Demand();
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
327new UIPermission(PermissionState.Unrestricted).Assert(); // BlessedAssert
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
261PermissionSet ps = new PermissionSet(PermissionState.None);
src\Framework\System\Windows\Documents\Speller.cs (2)
1669new EnvironmentPermission(PermissionState.Unrestricted).Assert(); 1705new FileIOPermission(PermissionState.Unrestricted).Assert();
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (1)
62FileIOPermission fiop = new FileIOPermission(PermissionState.None);
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
365(new UIPermission(PermissionState.Unrestricted)).Assert(); // Blessed assert
src\Framework\System\Windows\Interop\DocobjHost.cs (2)
122(new SecurityPermission(PermissionState.Unrestricted)).Assert(); //BlessedAssert 959IsolatedStorageFilePermission storagePermission = new IsolatedStorageFilePermission(PermissionState.Unrestricted);
src\Framework\System\Windows\Interop\HwndHost.cs (2)
1035new UIPermission(PermissionState.Unrestricted).Assert(); //BlessedAssert: 1060new UIPermission(PermissionState.Unrestricted).Assert(); //BlessedAssert:
src\Shared\MS\Internal\SecurityHelper.cs (4)
199_webBrowserPermission = new WebBrowserPermission(PermissionState.Unrestricted); 1078_unrestrictedUIPermission = new UIPermission(PermissionState.Unrestricted); 1141_unrestrictedFileIOPermission = new FileIOPermission(PermissionState.Unrestricted); 1364_plugInSerializerPermissions = new PermissionSet(PermissionState.Unrestricted);
System (99)
compmod\microsoft\win32\SystemEvents.cs (2)
1042new RegistryPermission(PermissionState.Unrestricted).Assert(); 1207FileIOPermission fiop = new FileIOPermission(PermissionState.None);
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (4)
98FileIOPermission perm = new FileIOPermission(PermissionState.Unrestricted); 133FileIOPermission perm = new FileIOPermission(PermissionState.Unrestricted); 161FileIOPermission perm = new FileIOPermission(PermissionState.Unrestricted); 250PermissionSet perms = new PermissionSet(PermissionState.Unrestricted);
compmod\system\componentmodel\IntSecurity.cs (2)
15public static readonly CodeAccessPermission FullReflection = new ReflectionPermission(PermissionState.Unrestricted); 20FileIOPermission fiop = new FileIOPermission(PermissionState.None);
compmod\system\componentmodel\TypeDescriptor.cs (4)
369PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 407PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 3244PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 3281PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None);
compmod\system\diagnostics\TraceEventCache.cs (1)
34new EnvironmentPermission(PermissionState.Unrestricted).Demand();
compmod\system\security\permissions\AspNetHostingPermission.cs (4)
50return new AspNetHostingPermission(PermissionState.Unrestricted); 88public AspNetHostingPermission(PermissionState state) { 90case PermissionState.Unrestricted: 94case PermissionState.None:
compmod\system\security\permissions\ResourcePermissionBase.cs (4)
46protected ResourcePermissionBase(PermissionState state) { 47if (state == PermissionState.Unrestricted) 49else if (state == PermissionState.None) 193new PermissionSet(PermissionState.Unrestricted).Assert();
net\System\Net\_AutoWebProxyScriptWrapper.cs (2)
597NamedPermissionSet perms = new NamedPermissionSet("__WebProxySandbox", PermissionState.None); 617PermissionSet permissionSet = new PermissionSet(PermissionState.None);
net\System\Net\_FtpControlStream.cs (2)
690new SocketPermission(PermissionState.Unrestricted).Assert(); 1108new SocketPermission(PermissionState.Unrestricted).Assert();
net\System\Net\_NetworkingPerfCounters.cs (1)
185PerformanceCounterPermission perfCounterPermission = new PerformanceCounterPermission(PermissionState.Unrestricted);
net\System\Net\Configuration\UriSection.cs (2)
159new FileIOPermission(PermissionState.Unrestricted).Assert(); 207new FileIOPermission(PermissionState.Unrestricted).Assert();
net\System\Net\DNS.cs (1)
32private static DnsPermission s_DnsPermission = new DnsPermission(PermissionState.Unrestricted);
net\System\Net\DnsPermission.cs (4)
30return new DnsPermission( PermissionState.Unrestricted); 33return new DnsPermission( PermissionState.None); 54public DnsPermission(PermissionState state) { 55m_noRestriction = (state==PermissionState.Unrestricted);
net\System\Net\HttpWebRequest.cs (1)
5453new ReflectionPermission(PermissionState.Unrestricted).Assert();
net\System\Net\Internal.cs (1)
950internal static readonly SocketPermission UnrestrictedSocketPermission = new SocketPermission(PermissionState.Unrestricted);
net\System\Net\mail\smtppermission.cs (4)
52perm = new SmtpPermission(PermissionState.Unrestricted); 55perm = new SmtpPermission(PermissionState.None); 86public SmtpPermission(PermissionState state) { 87if (state == PermissionState.Unrestricted){
net\System\Net\NetworkInformation\NetworkInformationPermission.cs (4)
49perm = new NetworkInformationPermission(PermissionState.Unrestricted); 52perm = new NetworkInformationPermission(PermissionState.None); 81public NetworkInformationPermission(PermissionState state) { 82if (state == PermissionState.Unrestricted){
net\System\Net\SocketPermission.cs (4)
104perm = new SocketPermission( PermissionState.Unrestricted); 107perm = new SocketPermission(PermissionState.None); 219public SocketPermission(PermissionState state) { 221m_noRestriction = (state == PermissionState.Unrestricted);
net\System\Net\WebPermission.cs (3)
148perm = new WebPermission( PermissionState.Unrestricted); 312public WebPermission(PermissionState state) { 313m_noRestriction = (state == PermissionState.Unrestricted);
parent\parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
429new FileIOPermission(PermissionState.Unrestricted).Assert();
regex\system\text\regularexpressions\compiledregexrunnerfactory.cs (1)
31new ReflectionPermission(PermissionState.Unrestricted).Assert();
regex\system\text\regularexpressions\RegexCompiler.cs (4)
137new ReflectionPermission(PermissionState.Unrestricted).Assert(); 199new ReflectionPermission(PermissionState.Unrestricted).Assert(); 237new ReflectionPermission(PermissionState.Unrestricted).Assert(); 3082new ReflectionPermission(PermissionState.Unrestricted).Assert();
security\system\security\cryptography\cryptoapi.cs (4)
3322new PermissionSet(PermissionState.Unrestricted).Demand(); 3348new PermissionSet(PermissionState.Unrestricted).Demand(); 3376new PermissionSet(PermissionState.Unrestricted).Demand(); 3799new PermissionSet(PermissionState.Unrestricted).Demand();
security\system\security\cryptography\x509\x509chain.cs (2)
198PermissionSet ps = new PermissionSet(PermissionState.None); 199ps.AddPermission(new WebPermission(PermissionState.Unrestricted));
security\system\security\permissions\storepermission.cs (3)
18public StorePermission (PermissionState state) { 19if (state == PermissionState.Unrestricted) 21else if (state == PermissionState.None)
security\system\security\permissions\storepermissionattribute.cs (1)
64return new StorePermission(PermissionState.Unrestricted);
security\system\security\permissions\typedescriptorpermission.cs (3)
37public TypeDescriptorPermission(PermissionState state) 39if (state == PermissionState.Unrestricted) 43else if (state == PermissionState.None)
security\system\security\permissions\typedescriptorpermissionattribute.cs (1)
34return new TypeDescriptorPermission(PermissionState.Unrestricted);
services\io\system\io\FileSystemWatcher.cs (2)
947new EnvironmentPermission(PermissionState.Unrestricted).Assert(); 1002SecurityPermission secPermission = new SecurityPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\CounterSampleCalculator.cs (1)
232new FileIOPermission(PermissionState.Unrestricted).Assert();
services\monitoring\system\diagnosticts\EventLog.cs (3)
73PermissionSet permissionSet = new PermissionSet(PermissionState.None); 76RegistryPermission registryPermission = new RegistryPermission(PermissionState.Unrestricted); 81EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\EventLogPermission.cs (1)
30public EventLogPermission(PermissionState state)
services\monitoring\system\diagnosticts\EventLogPermissionAttribute.cs (1)
51return new EventLogPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (14)
190EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 229EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted); 235PermissionSet ps = new PermissionSet(PermissionState.None); 236ps.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted)); 357FileIOPermission permission = new FileIOPermission(PermissionState.Unrestricted); 458RegistryPermission registryPermission = new RegistryPermission(PermissionState.Unrestricted); 514FileIOPermission permission = new FileIOPermission(PermissionState.Unrestricted); 553RegistryPermission registryPermission = new RegistryPermission(PermissionState.Unrestricted); 621PermissionSet ps = new PermissionSet(PermissionState.None); 622ps.AddPermission(new RegistryPermission(PermissionState.Unrestricted)); 898new RegistryPermission(PermissionState.Unrestricted).Assert(); 958PermissionSet ps = new PermissionSet(PermissionState.None); 959ps.AddPermission(new RegistryPermission(PermissionState.Unrestricted)); 1231new RegistryPermission(PermissionState.Unrestricted).Assert();
services\monitoring\system\diagnosticts\PerformanceCounterPermission.cs (1)
30public PerformanceCounterPermission(PermissionState state)
services\monitoring\system\diagnosticts\PerformanceCounterPermissionAttribute.cs (1)
66return new PerformanceCounterPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\SharedPerformanceCounter.cs (1)
612RegistryPermission registryPermission = new RegistryPermission(PermissionState.Unrestricted);
services\monitoring\system\diagnosticts\SharedUtils.cs (2)
52SecurityPermission securityPermission = new SecurityPermission(PermissionState.Unrestricted); 231RegistryPermission registryPermission = new RegistryPermission(PermissionState.Unrestricted);
sys\system\configuration\ClientSettingsStore.cs (1)
493IsolatedStoragePermission storagePerm = new IsolatedStorageFilePermission(PermissionState.None);
sys\system\Media\SoundPlayer.cs (1)
123FileIOPermission fiop = new FileIOPermission(PermissionState.None);
System.Activities (2)
System\Activities\Debugger\StateManager.cs (1)
715PermissionSet unmanagedCodePermissionSet = new PermissionSet(PermissionState.None);
System\Activities\Runtime\CallbackWrapper.cs (1)
286PermissionSet myPermissionSet = new PermissionSet(PermissionState.None);
System.AddIn (15)
System\Addin\Hosting\ActivationWorker.cs (3)
84PermissionSet permissionSet = new PermissionSet(PermissionState.None); 146FileIOPermission permission = new FileIOPermission(PermissionState.None); 255PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInActivator.cs (4)
147new PermissionSet(PermissionState.Unrestricted).Demand(); 321PermissionSet permissionSet = new PermissionSet(PermissionState.None); 492PermissionSet assertSet = new PermissionSet(PermissionState.None); 693FileIOPermission permission = new FileIOPermission(PermissionState.None);
System\Addin\Hosting\AddInControllerImpl.cs (1)
205PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInServer.cs (2)
120PermissionSet permissionSet = new PermissionSet(PermissionState.None); 123permissionSet.AddPermission(new ReflectionPermission(PermissionState.Unrestricted));
System\Addin\Hosting\AddInStore.cs (3)
1021PermissionSet permissionSet = new PermissionSet(PermissionState.None); 1131FileIOPermission permission = new FileIOPermission(PermissionState.None); 1502FileIOPermission permission = new FileIOPermission(PermissionState.None);
System\Addin\Hosting\Utils.cs (1)
261new PermissionSet(PermissionState.Unrestricted).Demand();
System\Addin\MiniReflection\TypeInfo.cs (1)
162FileIOPermission permission = new FileIOPermission(PermissionState.None);
System.Configuration (21)
System\Configuration\BaseConfigurationRecord.cs (1)
1754s_unrestrictedConfigPermission = new ConfigurationPermission(PermissionState.Unrestricted);
System\Configuration\ConfigurationPermission.cs (18)
21PermissionState state = (this.Unrestricted) ? 22PermissionState.Unrestricted : PermissionState.None; 39private PermissionState _permissionState; // Unrestricted or None 45public ConfigurationPermission(PermissionState state) { 49case PermissionState.Unrestricted: 50case PermissionState.None: 67return _permissionState == PermissionState.Unrestricted; 92if (_permissionState == PermissionState.Unrestricted) { 93return new ConfigurationPermission(PermissionState.Unrestricted); 115if (_permissionState == PermissionState.None) { 116return new ConfigurationPermission(PermissionState.None); 129return _permissionState == PermissionState.None; 137return (_permissionState == PermissionState.None || other._permissionState == PermissionState.Unrestricted); 165_permissionState = PermissionState.None; 170_permissionState = PermissionState.Unrestricted; 174_permissionState = PermissionState.None;
System\Configuration\Internal\InternalConfigHost.cs (1)
207new FileIOPermission(PermissionState.Unrestricted).Assert();
System\Configuration\TypeUtil.cs (1)
261s_fullTrustPermissionSet = new PermissionSet(PermissionState.Unrestricted);
System.Data (31)
fx\src\data\System\Data\Common\AdapterUtil.cs (2)
608static internal ArgumentOutOfRangeException InvalidPermissionState(PermissionState value) { 617return InvalidEnumerationValue(typeof(PermissionState), (int) value);
fx\src\data\System\Data\Common\DBDataPermission.cs (5)
30protected DBDataPermission() : this(PermissionState.None) { // V1.0.3300 33protected DBDataPermission(PermissionState state) { // V1.0.3300 34if (state == PermissionState.Unrestricted) { 37else if (state == PermissionState.None) { 46protected DBDataPermission(PermissionState state, bool allowBlankPassword) : this(state) { // V1.0.3300, MDAC 84281
fx\src\data\System\Data\Common\DbProviderFactory.cs (1)
54public virtual CodeAccessPermission CreatePermission(PermissionState state) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (1)
528(new OdbcPermission(PermissionState.Unrestricted)).Demand();
fx\src\data\System\Data\Odbc\OdbcConnectionString.cs (1)
50permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\Odbc\OdbcFactory.cs (1)
48public override CodeAccessPermission CreatePermission(PermissionState state) {
fx\src\data\System\Data\Odbc\OdbcPermission.cs (3)
23public OdbcPermission() : this(PermissionState.None) { 26public OdbcPermission(PermissionState state) : base(state) { 30public OdbcPermission(PermissionState state, bool allowBlankPassword) : this(state) {
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
630(new OleDbPermission(PermissionState.Unrestricted)).Demand();
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (1)
164permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\OleDb\OleDbDataAdapter.cs (2)
166System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None); 190System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\OleDb\OleDbFactory.cs (1)
48public override CodeAccessPermission CreatePermission(PermissionState state) {
fx\src\data\System\Data\OleDb\OleDbPermission.cs (3)
26public OleDbPermission() : this(PermissionState.None) { 29public OleDbPermission(PermissionState state) : base(state) { 33public OleDbPermission(PermissionState state, bool allowBlankPassword) : this(state) {
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (2)
193DBDataPermission p = (DBDataPermission)CONNECTIONFACTORYOBJECTNAME.ProviderFactory.CreatePermission(System.Security.Permissions.PermissionState.None); 214System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\SqlClient\SqlClientFactory.cs (1)
55public override CodeAccessPermission CreatePermission(PermissionState state) {
fx\src\data\System\Data\SqlClient\SqlClientPermission.cs (3)
21public SqlClientPermission() : this(PermissionState.None) { 24public SqlClientPermission(PermissionState state) : base(state) { 28public SqlClientPermission(PermissionState state, bool allowBlankPassword) : this(state) {
fx\src\data\System\Data\SqlClient\SqlConnection.cs (1)
1035(new SqlClientPermission(PermissionState.Unrestricted)).Demand();
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
597System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (1)
563filePerm = new FileIOPermission(PermissionState.Unrestricted);
System.Data.Entity (1)
System\Data\EntityClient\EntityProviderFactory.cs (1)
99public override CodeAccessPermission CreatePermission(PermissionState state)
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
46CreateModulePermissionSet = new PermissionSet(PermissionState.None);
System.Drawing (7)
commonui\System\Drawing\IntSecurity.cs (2)
48FileIOPermission fiop = new FileIOPermission(PermissionState.None); 65PermissionSet temp = new PermissionSet(PermissionState.None);
commonui\System\Drawing\Printing\PrintDocument.cs (1)
137new ReflectionPermission(PermissionState.Unrestricted).Assert();
commonui\System\Drawing\Printing\PrintingPermission.cs (3)
30public PrintingPermission(PermissionState state) { 31if (state == PermissionState.Unrestricted) { 34else if (state == PermissionState.None) {
commonui\System\Drawing\Printing\PrintingPermissionAttribute.cs (1)
44return new PrintingPermission(PermissionState.Unrestricted);
System.IdentityModel (2)
System\IdentityModel\Selectors\X509CertificateChain.cs (2)
94PermissionSet ps = new PermissionSet(PermissionState.None); 95ps.AddPermission(new WebPermission(PermissionState.Unrestricted));
System.Messaging (7)
System\Messaging\AccessControlList.cs (1)
42EnvironmentPermission environmentPermission = new EnvironmentPermission(PermissionState.Unrestricted);
System\Messaging\MessageQueue.cs (2)
2133DirectoryServicesPermission dsPermission = new DirectoryServicesPermission(PermissionState.Unrestricted); 4476SecurityPermission permission = new SecurityPermission(PermissionState.Unrestricted);
System\Messaging\MessageQueueCriteria.cs (1)
156MessageQueuePermission permission = new MessageQueuePermission(PermissionState.Unrestricted);
System\Messaging\MessageQueuePermission.cs (2)
42public MessageQueuePermission(PermissionState state) 44if (state == PermissionState.Unrestricted)
System\Messaging\MessageQueuePermissionAttribute.cs (1)
139return new MessageQueuePermission(PermissionState.Unrestricted);
System.Net (10)
net\PeerToPeer\Collaboration\PeerCollaborationPermission.cs (5)
36return new PeerCollaborationPermission(PermissionState.Unrestricted); 39return new PeerCollaborationPermission(PermissionState.None); 53new PeerCollaborationPermission(PermissionState.Unrestricted); 61public PeerCollaborationPermission(PermissionState state) 63m_noRestriction = (state == PermissionState.Unrestricted);
net\PeerToPeer\PnrpPermission.cs (5)
34return new PnrpPermission(PermissionState.Unrestricted); 37return new PnrpPermission(PermissionState.None); 50internal static readonly PnrpPermission UnrestrictedPnrpPermission = new PnrpPermission(PermissionState.Unrestricted); 58public PnrpPermission(PermissionState state) 60m_noRestriction = (state == PermissionState.Unrestricted);
System.Runtime.Remoting (2)
channels\sinks\binaryformattersinks.cs (1)
573currentPermissionSet = new PermissionSet(PermissionState.None);
channels\sinks\soapformattersinks.cs (1)
641currentPermissionSet = new PermissionSet(PermissionState.None);
System.Security (5)
system\security\cryptography\cryptoapi.cs (1)
2785new PermissionSet(PermissionState.Unrestricted).Demand();
system\security\permissions\dataprotectionpermission.cs (3)
20public DataProtectionPermission (PermissionState state) { 21if (state == PermissionState.Unrestricted) 23else if (state == PermissionState.None)
system\security\permissions\dataprotectionpermissionattribute.cs (1)
52return new DataProtectionPermission(PermissionState.Unrestricted);
System.ServiceModel (2)
System\ServiceModel\Description\ConfigLoader.cs (1)
1515configurationPermission = new ConfigurationPermission(System.Security.Permissions.PermissionState.Unrestricted);
System\ServiceModel\Dispatcher\PartialTrustValidationBehavior.cs (1)
164static readonly PermissionSet fullTrust = new PermissionSet(PermissionState.Unrestricted);
System.ServiceModel.Activation (1)
System\ServiceModel\Activation\HostedTransportConfigurationManager.cs (1)
80new PermissionSet(PermissionState.Unrestricted).Assert();
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
811PermissionSet ps = new PermissionSet(PermissionState.Unrestricted);
System.ServiceModel.Internals (1)
System\Runtime\PartialTrustHelpers.cs (1)
122PermissionSet permissions = new PermissionSet(PermissionState.Unrestricted);
System.Transactions (6)
System\Transactions\DistributedTransactionPermission.cs (5)
14public DistributedTransactionPermission(PermissionState state) 16if (state == PermissionState.Unrestricted) 37DistributedTransactionPermission copy = new DistributedTransactionPermission(PermissionState.None); 184return new DistributedTransactionPermission(PermissionState.Unrestricted); 188return new DistributedTransactionPermission(PermissionState.None);
System\Transactions\Oletx\OletxTransactionManager.cs (1)
606new DistributedTransactionPermission( PermissionState.Unrestricted );
System.Web (19)
Cache\SqlCacheDependency.cs (1)
155new SqlClientPermission(PermissionState.Unrestricted).Demand();
Configuration\HttpCapabilitiesSectionHandler.cs (1)
301FileIOPermission fiop = new FileIOPermission(PermissionState.None);
Hosting\ApplicationManager.cs (7)
968permissionSet = new PermissionSet(PermissionState.Unrestricted); 1121permissionSet = new PermissionSet(PermissionState.Unrestricted); 1127permissionSet = new PermissionSet(PermissionState.Unrestricted); 1184permissionSet = new PermissionSet(PermissionState.Unrestricted); 1505PermissionSet fullTrust = new PermissionSet(PermissionState.Unrestricted); 1623private PermissionSet Nothing = new PermissionSet(PermissionState.None); 1624private PermissionSet FullTrust = new PermissionSet(PermissionState.Unrestricted);
Hosting\HostingEnvironment.cs (1)
621new EnvironmentPermission(PermissionState.Unrestricted).Assert();
HttpRuntime.cs (3)
2282new EnvironmentPermission(PermissionState.Unrestricted).Assert(); 2616CodeAccessPermission askedPermission = factory.CreatePermission(PermissionState.Unrestricted); 3191PermissionSet fullTrust = new PermissionSet(PermissionState.Unrestricted);
IntSecurity.cs (1)
26_unrestricted = new PermissionSet(PermissionState.Unrestricted);
UI\WebParts\ImportCatalogPart.cs (2)
173PermissionSet pset = new PermissionSet(PermissionState.None); 218PermissionSet mediumPset = new PermissionSet(PermissionState.None);
UI\WebParts\WebPartManager.cs (2)
464_mediumPermissionSet = new PermissionSet(PermissionState.None); 477_minimalPermissionSet = new PermissionSet(PermissionState.None);
Util\Permission.cs (1)
35askedPermission = new SqlClientPermission(PermissionState.Unrestricted);
System.Web.Services (1)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
43new PermissionSet(PermissionState.Unrestricted).Demand();
System.Windows.Forms (34)
winforms\Managed\System\WinForms\Application.cs (4)
205new RegistryPermission(PermissionState.Unrestricted).Assert(); 1045FileIOPermission fiop = new FileIOPermission(PermissionState.None); 1196FileIOPermission fiop = new FileIOPermission( PermissionState.None ); 1413new FileIOPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\ComboBox.cs (1)
258FileIOPermission fiop = new FileIOPermission(PermissionState.Unrestricted);
winforms\Managed\System\WinForms\Control.cs (3)
18145new PermissionSet(PermissionState.Unrestricted).Assert(); 18220new PermissionSet(PermissionState.Unrestricted).Assert(); 20270FileIOPermission fiop = new FileIOPermission( PermissionState.None );
winforms\Managed\System\WinForms\FileDialog_Vista.cs (1)
43new EnvironmentPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\Form.cs (2)
4261FileIOPermission fiop = new FileIOPermission( PermissionState.None ); 4315new EnvironmentPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\InputLanguage.cs (1)
187new RegistryPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\LinkUtilities.cs (2)
39new RegistryPermission(PermissionState.Unrestricted).Assert(); 131new RegistryPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\ListView.cs (5)
2338FileIOPermission fiop = new FileIOPermission(PermissionState.Unrestricted); 2884FileIOPermission fiop = new FileIOPermission(PermissionState.Unrestricted); 2986FileIOPermission fiop = new FileIOPermission(PermissionState.Unrestricted); 4794FileIOPermission fiop = new FileIOPermission(PermissionState.Unrestricted); 4795System.Security.PermissionSet permSet = new System.Security.PermissionSet(PermissionState.Unrestricted);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
205new RegistryPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\NativeWindow.cs (1)
494new RegistryPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\OpenFileDialog.cs (2)
260new FileIOPermission(PermissionState.Unrestricted).Assert(); 288new FileIOPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\TextBox.cs (1)
201FileIOPermission fiop = new FileIOPermission(PermissionState.Unrestricted);
winforms\Managed\System\WinForms\ThreadExceptionDialog.cs (1)
189new FileIOPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\TrustManager.cs (2)
253new RegistryPermission(PermissionState.Unrestricted).Assert(); 784new RegistryPermission(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (2)
145new PermissionSet(PermissionState.Unrestricted).Assert(); 168new PermissionSet(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\WinFormsSecurity.cs (5)
124PermissionSet temp = new PermissionSet(PermissionState.None); 163clipboardWrite = new PermissionSet(PermissionState.None); 219fileDialogCustomization = new FileIOPermission(PermissionState.Unrestricted); 378sensitiveSystemInformation = new EnvironmentPermission(PermissionState.Unrestricted); 489FileIOPermission fiop = new FileIOPermission( PermissionState.None );
System.Workflow.Activities (3)
Rules\Design\LogicalExpressionTypeConverter.cs (3)
224SecurityPermission MyPermission = new SecurityPermission(PermissionState.Unrestricted); 329SecurityPermission MyPermission = new SecurityPermission(PermissionState.Unrestricted); 432SecurityPermission MyPermission = new SecurityPermission(PermissionState.Unrestricted);
System.Workflow.Runtime (1)
PerformanceCounterManager.cs (1)
233new System.Security.Permissions.SecurityPermission(System.Security.Permissions.PermissionState.Unrestricted).Assert();
System.Xml (11)
System\Xml\Serialization\Compilation.cs (4)
245new EventLogPermission(PermissionState.Unrestricted).Assert(); 251PermissionSet perms = new PermissionSet(PermissionState.None); 252perms.AddPermission(new FileIOPermission(PermissionState.Unrestricted)); 571fileIOPermission = new FileIOPermission(PermissionState.Unrestricted);
System\Xml\Serialization\Compiler.cs (5)
121PermissionSet perms = new PermissionSet(PermissionState.None); 122perms.AddPermission(new FileIOPermission(PermissionState.Unrestricted)); 123perms.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted)); 169PermissionSet perms = new PermissionSet(PermissionState.None); 173perms.AddPermission(new EnvironmentPermission(PermissionState.Unrestricted));
System\Xml\Serialization\XmlSerializationWriter.cs (1)
3242fileIOPermission = new FileIOPermission(PermissionState.Unrestricted);
System\Xml\Xslt\XslCompiledTransform.cs (1)
57MemberAccessPermissionSet = new PermissionSet(PermissionState.None);
WindowsBase (27)
Base\MS\Internal\AssemblyHelper.cs (1)
214PermissionSet ps = new PermissionSet(PermissionState.Unrestricted);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (3)
132(new PermissionSet(PermissionState.Unrestricted)).Assert(); 853(new PermissionSet(PermissionState.Unrestricted)).Assert(); 1032(new PermissionSet(PermissionState.Unrestricted)).Assert(); // Blessed
Base\MS\Internal\Permissions\CompoundFileIOPermission.cs (2)
41public CompoundFileIOPermission() : this(PermissionState.Unrestricted) 45public CompoundFileIOPermission(PermissionState state): base(state)
Base\MS\Internal\Permissions\RightsManagementPermission.cs (2)
40public RightsManagementPermission() : this(PermissionState.Unrestricted) 44public RightsManagementPermission(PermissionState state): base(state)
Base\MS\Internal\Permissions\UserInitiatedRoutedEventPermission.cs (2)
25public UserInitiatedRoutedEventPermission() : this(PermissionState.Unrestricted) 29public UserInitiatedRoutedEventPermission(PermissionState state): base(state)
Base\System\Security\Permissions\MediaPermission.cs (4)
142public MediaPermission(PermissionState state) 144if (state == PermissionState.Unrestricted) 150else if (state == PermissionState.None) 614return new MediaPermission(PermissionState.Unrestricted);
Base\System\Security\Permissions\WebBrowserPermission.cs (4)
83public WebBrowserPermission(PermissionState state) 85if (state == PermissionState.Unrestricted) 89else if (state == PermissionState.None) 389return new WebBrowserPermission(PermissionState.Unrestricted);
parent\parent\InternalApis\NDP_FX\inc\ZLibNative.cs (1)
429new FileIOPermission(PermissionState.Unrestricted).Assert();
Shared\MS\Internal\Invariant.cs (1)
308PermissionSet ps = new PermissionSet(PermissionState.None);
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
553PermissionSet permissionSet = new PermissionSet(PermissionState.None);
Shared\MS\Internal\Permissions\InternalPermissions.cs (3)
66protected InternalParameterlessPermissionBase(PermissionState state) 72case PermissionState.Unrestricted: 74case PermissionState.None:
Shared\MS\Internal\SecurityHelper.cs (2)
871FileIOPermission permobj = new FileIOPermission(PermissionState.None); 1078_unrestrictedUIPermission = new UIPermission(PermissionState.Unrestricted);
Shared\MS\Internal\TextServicesLoader.cs (1)
212PermissionSet ps = new PermissionSet(PermissionState.None);