2 types derived from PermissionSet
mscorlib (2)
system\security\namedpermissionset.cs (1)
40public sealed class NamedPermissionSet : PermissionSet
system\security\readonlypermissionset.cs (1)
31public sealed class ReadOnlyPermissionSet : PermissionSet
162 instantiations of PermissionSet
mscorlib (65)
system\appdomain.cs (7)
540new PermissionSet(PermissionState.Unrestricted).Assert(); 2388new PermissionSet(PermissionState.Unrestricted).Demand(); 2656_applicationTrust = new ApplicationTrust(new PermissionSet(PermissionState.Unrestricted)); 2875PermissionSet permissionSet = new PermissionSet(); 4431return new PermissionSet(PermissionState.Unrestricted); 4477return new PermissionSet(PermissionState.Unrestricted); 4498return new PermissionSet(PermissionState.Unrestricted);
system\bcldebug.cs (1)
357PermissionSet perms = new PermissionSet();
system\globalization\japanesecalendar.cs (1)
171PermissionSet permSet = new PermissionSet(PermissionState.None);
system\io\isolatedstorage\isolatedstorage.cs (1)
346s_PermUnrestricted = new PermissionSet(
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\resources\resourcewriter.cs (1)
354PermissionSet permSet = new PermissionSet(PermissionState.None);
system\rttype.cs (1)
5389PermissionSet ps = new PermissionSet(PermissionState.None);
system\runtime\remoting\configuration.cs (1)
922private static PermissionSet s_fullTrust = new PermissionSet(PermissionState.Unrestricted);
system\runtime\remoting\crossappdomainchannel.cs (1)
43private static PermissionSet s_fullTrust = new PermissionSet(PermissionState.Unrestricted);
system\security\codeaccesssecurityengine.cs (3)
506demandSet = new PermissionSet(PermissionState.Unrestricted); 740grantSet = new PermissionSet(PermissionState.Unrestricted); 771grantSet = new PermissionSet(PermissionState.Unrestricted);
system\security\framesecuritydescriptor.cs (1)
91PermissionSet permSet = new PermissionSet(false);
system\security\hostsecuritymanager.cs (2)
173return new PermissionSet(PermissionState.Unrestricted); 181return new PermissionSet(PermissionState.Unrestricted);
system\security\permissions\permissionattributes.cs (3)
1170PermissionSet permSet = new PermissionSet( PermissionState.None ); 1185return new PermissionSet( PermissionState.Unrestricted ); 1201return new PermissionSet( PermissionState.None );
system\security\permissionset.cs (10)
119internal static readonly PermissionSet s_fullTrust = new PermissionSet( true ); 964PermissionSet pset = new PermissionSet( false ); 1247PermissionSet pset = new PermissionSet(); 1588return new PermissionSet(this); 1595PermissionSet copy = new PermissionSet(this); 1640PermissionSet permSetTemp = new PermissionSet(false); 2312PermissionSet pset = new PermissionSet(false); 2391casPset = new PermissionSet(false); 2400nonCasPset = new PermissionSet(false); 2448casPset = new PermissionSet(false);
system\security\permissionsettriple.cs (1)
107GrantSet = new PermissionSet(true);
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\codegroup.cs (1)
670elPolicy.AddChild( new PermissionSet( false ).ToXml() );
system\security\policy\filecodegroup.cs (2)
125PermissionSet permSet = new PermissionSet(PermissionState.None); 142thisPolicy = new PolicyStatement(new PermissionSet(false), PolicyStatementAttribute.Nothing);
system\security\policy\netcodegroup.cs (1)
716thisPolicy = new PolicyStatement( new PermissionSet( false ), PolicyStatementAttribute.Nothing );
system\security\policy\policylevel.cs (1)
752policy = new PolicyStatement(new PermissionSet(true), PolicyStatementAttribute.Nothing);
system\security\policy\policystatement.cs (9)
69m_permSet = new PermissionSet( false ); 92m_permSet = new PermissionSet( false ); 114m_permSet = new PermissionSet( false ); 391m_permSet = new PermissionSet( PermissionState.None ); 412m_permSet = new PermissionSet( PermissionState.None ); 433m_permSet = new PermissionSet( PermissionState.None ); 468m_permSet = new PermissionSet( 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 (1)
856PermissionSet pset = new PermissionSet(PermissionState.None);
system\security\securitymanager.cs (4)
101return new PermissionSet(PermissionState.None); 106return new PermissionSet(PermissionState.Unrestricted); 148return new PermissionSet(PermissionState.None); 361return new PermissionSet(PermissionState.Unrestricted);
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 (11)
Core\CSharp\MS\Internal\AppModel\CustomCredentialPolicy.cs (1)
67_environmentPermissionSet = new PermissionSet(null);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
172PermissionSet permissionSet = new PermissionSet(null);
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
381System.Security.PermissionSet permissionSet = new PermissionSet(null);
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\HwndTarget.cs (1)
1597PermissionSet unpackPermissionSet = new PermissionSet(PermissionState.None);
Shared\MS\Internal\SecurityHelper.cs (5)
339_fullTrustPermissionSet = new PermissionSet(PermissionState.Unrestricted); 370PermissionSet psToCheck = new PermissionSet(PermissionState.None); 401PermissionSet psToCheck = new PermissionSet(PermissionState.None); 826PermissionSet permissionSet = new PermissionSet(PermissionState.None); 1364_plugInSerializerPermissions = new PermissionSet(PermissionState.Unrestricted);
PresentationFramework (9)
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (1)
134System.Security.PermissionSet permissionSet = new PermissionSet(null);
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (1)
155permissions = new PermissionSet(permissions);
src\Framework\System\Windows\Application.cs (1)
2612PermissionSet permissions = new PermissionSet(null);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
778PermissionSet permissions = new PermissionSet(null);
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2271PermissionSet ps = new PermissionSet(PermissionState.None);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
261PermissionSet ps = new PermissionSet(PermissionState.None);
src\Framework\System\Windows\Interop\DocobjHost.cs (2)
950PermissionSet permissionSet = new PermissionSet(null); 984PermissionSet permissionSet = new PermissionSet(null);
src\Shared\MS\Internal\SecurityHelper.cs (1)
1364_plugInSerializerPermissions = new PermissionSet(PermissionState.Unrestricted);
System (16)
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
250PermissionSet perms = new PermissionSet(PermissionState.Unrestricted);
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\security\permissions\ResourcePermissionBase.cs (1)
193new PermissionSet(PermissionState.Unrestricted).Assert();
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
617PermissionSet permissionSet = new PermissionSet(PermissionState.None);
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 (1)
198PermissionSet ps = new PermissionSet(PermissionState.None);
services\monitoring\system\diagnosticts\EventLog.cs (1)
73PermissionSet permissionSet = new PermissionSet(PermissionState.None);
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (3)
235PermissionSet ps = new PermissionSet(PermissionState.None); 621PermissionSet ps = new PermissionSet(PermissionState.None); 958PermissionSet ps = new PermissionSet(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 (9)
System\Addin\Hosting\ActivationWorker.cs (2)
84PermissionSet permissionSet = new PermissionSet(PermissionState.None); 255PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInActivator.cs (3)
147new PermissionSet(PermissionState.Unrestricted).Demand(); 321PermissionSet permissionSet = new PermissionSet(PermissionState.None); 492PermissionSet assertSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInControllerImpl.cs (1)
205PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInServer.cs (1)
120PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInStore.cs (1)
1021PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\Utils.cs (1)
261new PermissionSet(PermissionState.Unrestricted).Demand();
System.Configuration (1)
System\Configuration\TypeUtil.cs (1)
261s_fullTrustPermissionSet = new PermissionSet(PermissionState.Unrestricted);
System.Data (6)
fx\src\data\System\Data\Odbc\OdbcConnectionString.cs (1)
50permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
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\ProviderBase\DbConnectionHelper.cs (1)
214System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (1)
597System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
System.Data.Entity (1)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1613PermissionSet serializationFormatterPermissions = new PermissionSet(null);
System.Data.SqlXml (1)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
46CreateModulePermissionSet = new PermissionSet(PermissionState.None);
System.Drawing (1)
commonui\System\Drawing\IntSecurity.cs (1)
65PermissionSet temp = new PermissionSet(PermissionState.None);
System.IdentityModel (1)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
94PermissionSet ps = new PermissionSet(PermissionState.None);
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 (1)
system\security\cryptography\cryptoapi.cs (1)
2785new PermissionSet(PermissionState.Unrestricted).Demand();
System.ServiceModel (1)
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.Web (13)
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);
HttpRuntime.cs (1)
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);
System.Web.Services (1)
System\Web\Services\Discovery\DiscoveryRequestHandler.cs (1)
43new PermissionSet(PermissionState.Unrestricted).Demand();
System.Windows.Forms (7)
winforms\Managed\System\WinForms\Control.cs (2)
18145new PermissionSet(PermissionState.Unrestricted).Assert(); 18220new PermissionSet(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\ListView.cs (1)
4795System.Security.PermissionSet permSet = new System.Security.PermissionSet(PermissionState.Unrestricted);
winforms\Managed\System\WinForms\WindowsFormsSynchronizationContext.cs (2)
145new PermissionSet(PermissionState.Unrestricted).Assert(); 168new PermissionSet(PermissionState.Unrestricted).Assert();
winforms\Managed\System\WinForms\WinFormsSecurity.cs (2)
124PermissionSet temp = new PermissionSet(PermissionState.None); 163clipboardWrite = new PermissionSet(PermissionState.None);
System.Xml (4)
System\Xml\Serialization\Compilation.cs (1)
251PermissionSet perms = new PermissionSet(PermissionState.None);
System\Xml\Serialization\Compiler.cs (2)
121PermissionSet perms = new PermissionSet(PermissionState.None); 169PermissionSet perms = new PermissionSet(PermissionState.None);
System\Xml\Xslt\XslCompiledTransform.cs (1)
57MemberAccessPermissionSet = new PermissionSet(PermissionState.None);
WindowsBase (7)
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
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\TextServicesLoader.cs (1)
212PermissionSet ps = new PermissionSet(PermissionState.None);
554 references to PermissionSet
mscorlib (363)
system\appdomain.cs (32)
1305PermissionSet requiredPermissions, 1306PermissionSet optionalPermissions, 1307PermissionSet refusedPermissions) 1348PermissionSet requiredPermissions, 1349PermissionSet optionalPermissions, 1350PermissionSet refusedPermissions) 1373PermissionSet requiredPermissions, 1374PermissionSet optionalPermissions, 1375PermissionSet refusedPermissions) 1400PermissionSet requiredPermissions, 1401PermissionSet optionalPermissions, 1402PermissionSet refusedPermissions) 1428PermissionSet requiredPermissions, 1429PermissionSet optionalPermissions, 1430PermissionSet refusedPermissions, 1456PermissionSet requiredPermissions, 1457PermissionSet optionalPermissions, 1458PermissionSet refusedPermissions, 1508PermissionSet requiredPermissions, 1509PermissionSet optionalPermissions, 1510PermissionSet refusedPermissions, 1569PermissionSet.s_fullTrust.Assert(); 1592PermissionSet.s_fullTrust.Assert(); 1749PermissionSet.s_fullTrust.Assert(); 1835PermissionSet.s_fullTrust.Assert(); 2875PermissionSet permissionSet = new PermissionSet(); 2903Contract.Assert( !(obj is PermissionSet), "PermissionSet should be xml deserialized" ); 3460PermissionSet grantSet, 4416public PermissionSet PermissionSet 4422PermissionSet grantSet = null; 4441PermissionSet grantSet = null; 4469internal PermissionSet GetHomogenousGrantSet(Evidence evidence)
system\bcldebug.cs (2)
59internal static volatile PermissionSet m_MakeConsoleErrorLoggingWork; 357PermissionSet perms = new PermissionSet();
system\globalization\japanesecalendar.cs (2)
12using PermissionSet = System.Security.PermissionSet; 171PermissionSet permSet = new PermissionSet(PermissionState.None);
system\iappdomain.cs (15)
104PermissionSet requiredPermissions, 105PermissionSet optionalPermissions, 106PermissionSet refusedPermissions); 116PermissionSet requiredPermissions, 117PermissionSet optionalPermissions, 118PermissionSet refusedPermissions); 123PermissionSet requiredPermissions, 124PermissionSet optionalPermissions, 125PermissionSet refusedPermissions); 131PermissionSet requiredPermissions, 132PermissionSet optionalPermissions, 133PermissionSet refusedPermissions); 139PermissionSet requiredPermissions, 140PermissionSet optionalPermissions, 141PermissionSet refusedPermissions,
system\io\file.cs (1)
21using PermissionSet = System.Security.PermissionSet;
system\io\fileinfo.cs (1)
24using PermissionSet = System.Security.PermissionSet;
system\io\isolatedstorage\isolatedstorage.cs (9)
140private static volatile PermissionSet s_PermUnrestricted; 342private static PermissionSet GetUnrestricted() 564PermissionSet psAllowed, psDenied; 618PermissionSet psAllowed, psDenied; 666PermissionSet psAllowed = null, psDenied = null; 733PermissionSet psAllowed = null; 1175internal virtual void SetQuota(PermissionSet psAllowed, PermissionSet psDenied) 1254protected abstract IsolatedStoragePermission GetPermission(PermissionSet ps);
system\io\isolatedstorage\isolatedstoragefile.cs (1)
1892PermissionSet ps)
system\io\longpath.cs (1)
19using PermissionSet = System.Security.PermissionSet;
system\reflection\assembly.cs (7)
857public virtual PermissionSet PermissionSet 1590public override PermissionSet PermissionSet 1595PermissionSet grantSet = null; 1596PermissionSet deniedSet = null; 2685internal void GetGrantSet(out PermissionSet newGrant, out PermissionSet newDenied) 2687PermissionSet granted = null, denied = null;
system\reflection\emit\assemblybuilder.cs (11)
301PermissionSet requiredPermissions, 302PermissionSet optionalPermissions, 303PermissionSet refusedPermissions, 533PermissionSet requiredPermissions, 534PermissionSet optionalPermissions, 535PermissionSet refusedPermissions, 552PermissionSet requiredPermissions, 553PermissionSet optionalPermissions, 554PermissionSet refusedPermissions, 1314public override PermissionSet PermissionSet 2093private void AddDeclarativeSecurity(PermissionSet pset, SecurityAction action)
system\reflection\emit\assemblybuilderdata.cs (6)
436PermissionSet required, 437PermissionSet optional, 438PermissionSet refused) 483internal PermissionSet m_RequiredPset; 484internal PermissionSet m_OptionalPset; 485internal PermissionSet m_RefusedPset;
system\reflection\emit\constructorbuilder.cs (1)
225public void AddDeclarativeSecurity(SecurityAction action, PermissionSet pset)
system\reflection\emit\methodbuilder.cs (1)
922public void AddDeclarativeSecurity(SecurityAction action, PermissionSet pset)
system\reflection\emit\typebuilder.cs (2)
2536public void AddDeclarativeSecurity(SecurityAction action, PermissionSet pset) 2545private void AddDeclarativeSecurityNoLock(SecurityAction action, PermissionSet pset)
system\resources\resourcewriter.cs (2)
354PermissionSet permSet = new PermissionSet(PermissionState.None); 375PermissionSet.RevertAssert();
system\rttype.cs (2)
5385volatile PermissionSet delegateCreatePermissions; 5389PermissionSet ps = new PermissionSet(PermissionState.None);
system\runtime\remoting\configuration.cs (1)
922private static PermissionSet s_fullTrust = new PermissionSet(PermissionState.Unrestricted);
system\runtime\remoting\crossappdomainchannel.cs (1)
43private static PermissionSet s_fullTrust = new PermissionSet(PermissionState.Unrestricted);
system\security\builtinpermissionsets.cs (3)
295PermissionSet extensions = GetPermissionSetExtensions(extensionXml); 324private static PermissionSet GetPermissionSetExtensions(string extensionXml) 336PermissionSet extensions = new NamedPermissionSet(se);
system\security\codeaccesssecurityengine.cs (32)
106private static void ThrowSecurityException(RuntimeAssembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) 115PermissionSet.s_fullTrust.Assert(); 127private static void ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) 144PermissionSet grants, 145PermissionSet refused, 146PermissionSet demands, 182internal static bool CheckSetHelper(PermissionSet grants, 184PermissionSet refused, 185PermissionSet demands, 258PermissionSet grantedSet, 259PermissionSet refusedSet, 295internal static bool CheckHelper(PermissionSet grantedSet, 297PermissionSet refusedSet, 427private static void CheckGrantSetHelper(PermissionSet grantSet) 441internal static void ReflectionTargetDemandHelper(PermissionType permission, PermissionSet targetGrant) 458private static void ReflectionTargetDemandHelper(int permission, PermissionSet targetGrant) 479PermissionSet targetGrant, 496PermissionSet targetGrant, 503PermissionSet demandSet = null; 518internal static void GetZoneAndOriginHelper( CompressedStack cs, PermissionSet grantSet, PermissionSet refusedSet, ArrayList zoneList, ArrayList originList ) 558PermissionSet granted, refused; 595internal static void Check(PermissionSet permSet, ref StackCrawlMark stackMark) 730private static PermissionSet ResolveGrantSet(Evidence evidence, out int specialFlags, bool checkExecutionPermission) 735PermissionSet grantSet = null; 762internal static bool TryResolveGrantSet(Evidence evidence, out PermissionSet grantSet) 778PermissionSet hostGrantSet = securityManager.ResolvePolicy(evidence); 799PermissionSet homogenousGrantSet = AppDomain.CurrentDomain.ApplicationTrust.DefaultGrantSet.PermissionSet; 830private static PermissionListSet UpdateAppDomainPLS(PermissionListSet adPLS, PermissionSet grantedPerms, PermissionSet refusedPerms) {
system\security\framesecuritydescriptor.cs (22)
35private PermissionSet m_assertions; // imperative asserts 36private PermissionSet m_denials; // imperative denials 37private PermissionSet m_restriction; // imperative permitonlys 38private PermissionSet m_DeclarativeAssertions; 39private PermissionSet m_DeclarativeDenials; 40private PermissionSet m_DeclarativeRestrictions; 89private PermissionSet CreateSingletonSet(IPermission perm) 91PermissionSet permSet = new PermissionSet(false); 123internal void SetAssert(PermissionSet permSet) 130internal PermissionSet GetAssertions(bool fDeclarative) 164internal void SetDeny(PermissionSet permSet) 170internal PermissionSet GetDenials(bool fDeclarative) 187internal void SetPermitOnly(PermissionSet permSet) 194internal PermissionSet GetPermitOnly(bool fDeclarative) 300PermissionSet permSet; 412internal bool CheckSetDemand(PermissionSet demandSet, 413out PermissionSet alteredDemandSet, 417PermissionSet altPset1 = null, altPset2 = null; 444internal bool CheckSetDemand2(PermissionSet demandSet, 445out PermissionSet alteredDemandSet, 448PermissionSet permSet; 544PermissionSet.RemoveAssertedPermissionSet(demandSet, permSet, out alteredDemandSet);
system\security\hostsecuritymanager.cs (1)
158public virtual PermissionSet ResolvePolicy(Evidence evidence)
system\security\namedpermissionset.cs (2)
71public NamedPermissionSet( String name, PermissionSet permSet ) 122public override PermissionSet Copy()
system\security\permissionlistset.cs (20)
65internal void UpdateDomainPLS (PermissionSet grantSet, PermissionSet deniedSet) { 136PermissionSet deniedPset = fsd.GetDenials(fDeclarative); 143PermissionSet permitOnlyPset = fsd.GetPermitOnly(fDeclarative); 156currentTriple.GrantSet = PermissionSet.s_fullTrust; 159currentTriple.GrantSet = PermissionSet.s_fullTrust; 165PermissionSet assertPset = fsd.GetAssertions(fDeclarative); 174currentTriple.GrantSet = PermissionSet.s_fullTrust; 177currentTriple.GrantSet = PermissionSet.s_fullTrust; 193private void Update(PermissionSetTriple currentTriple, PermissionSet in_g, PermissionSet in_r) 209private void Update(PermissionSet in_g) 381PermissionSet tmp_g, tmp_r; 442internal bool CheckSetDemandNoThrow(PermissionSet pSet) 473internal bool CheckSetDemand(PermissionSet pset , RuntimeMethodHandleInternal rmh) 475PermissionSet unused; 481internal bool CheckSetDemandWithModification(PermissionSet pset, out PermissionSet alteredDemandSet, RuntimeMethodHandleInternal rmh) 484PermissionSet demandSet = pset; 537internal void DemandFlagsOrGrantSet(int flags, PermissionSet grantSet)
system\security\permissions\permissionattributes.cs (5)
109PermissionSet.s_fullTrust.Assert(); 1137private PermissionSet BruteForceParseStream(Stream stream) 1167private PermissionSet ParsePermissionSet(Parser parser) 1170PermissionSet permSet = new PermissionSet( PermissionState.None ); 1182public PermissionSet CreatePermissionSet()
system\security\permissions\principalpermission.cs (2)
443PermissionSet.s_fullTrust.Assert(); 456PermissionSet.RevertAssert();
system\security\permissionset.cs (40)
119internal static readonly PermissionSet s_fullTrust = new PermissionSet( true ); 216public PermissionSet(PermissionSet permSet) 548internal bool IsSubsetOfHelper(PermissionSet target, IsSubsetOfType type, out IPermission firstPermThatFailed, bool ignoreNonCas) 634public bool IsSubsetOf(PermissionSet target) 640internal bool CheckDemand(PermissionSet target, out IPermission firstPermThatFailed) 645internal bool CheckPermitOnly(PermissionSet target, out IPermission firstPermThatFailed) 650internal bool CheckAssertion(PermissionSet target) 656internal bool CheckDeny(PermissionSet deniedSet, out IPermission firstPermThatFailed) 720internal void CheckDecoded(PermissionSet demandedSet) 766internal void InplaceIntersect( PermissionSet other ) 941public PermissionSet Intersect(PermissionSet other) 964PermissionSet pset = new PermissionSet( false ); 1098internal void InplaceUnion( PermissionSet other ) 1232public PermissionSet Union(PermissionSet other) 1247PermissionSet pset = new PermissionSet(); 1364internal void MergeDeniedSet(PermissionSet denied) 1426PermissionSet other = obj as PermissionSet; 1586public virtual PermissionSet Copy() 1591internal PermissionSet CopyWithNoIdentityPermissions() 1595PermissionSet copy = new PermissionSet(this); 1640PermissionSet permSetTemp = new PermissionSet(false); 2304private PermissionSet GetCasOnlySet() 2312PermissionSet pset = new PermissionSet(false); 2380private static void MergePermission(IPermission perm, bool separateCasFromNonCas, ref PermissionSet casPset, ref PermissionSet nonCasPset) 2417out PermissionSet casPset, 2423PermissionSet nonCasPset = null; 2435PermissionSet pset = ((PermissionSetAttribute)attrs[i]).CreatePermissionSet(); 2519internal static PermissionSet RemoveRefusedPermissionSet(PermissionSet assertSet, PermissionSet refusedSet, out bool bFailedToCompress) 2522PermissionSet retPs = null; 2575internal static void RemoveAssertedPermissionSet(PermissionSet demandSet, PermissionSet assertSet, out PermissionSet alteredDemandSet) 2607internal static bool IsIntersectingAssertedPermissions(PermissionSet assertSet1, PermissionSet assertSet2)
system\security\permissionsetenumerator.cs (3)
40internal PermissionSetEnumerator(PermissionSet permSet) 48private PermissionSet m_permSet; 59internal PermissionSetEnumeratorInternal(PermissionSet permSet)
system\security\permissionsettriple.cs (18)
32internal PermissionSet AssertSet; 33internal PermissionSet GrantSet; 34internal PermissionSet RefusedSet; 92internal PermissionSetTriple UpdateAssert(PermissionSet in_a) 102PermissionSet retPs; 114retPs = PermissionSet.RemoveRefusedPermissionSet(retPs, RefusedSet, out bFailedToCompress); 117bFailedToCompress = PermissionSet.IsIntersectingAssertedPermissions(retPs, AssertSet); 134internal void UpdateGrant(PermissionSet in_g, out ZoneIdentityPermission z,out UrlIdentityPermission u) 151internal void UpdateGrant(PermissionSet in_g) 161internal void UpdateRefused(PermissionSet in_r) 174static bool CheckAssert(PermissionSet pSet, CodeAccessPermission demand, PermissionToken permToken) 199static bool CheckAssert(PermissionSet assertPset, PermissionSet demandSet, out PermissionSet newDemandSet) 209PermissionSet.RemoveAssertedPermissionSet(demandSet, assertPset, out newDemandSet); 228internal bool CheckSetDemand(PermissionSet demandSet , out PermissionSet alteredDemandset, RuntimeMethodHandleInternal rmh) 253internal bool CheckSetDemandNoThrow(PermissionSet demandSet)
system\security\policy\applicationsecurityinfo.cs (4)
89public PermissionSet DefaultRequestSet { 94PermissionSet defaultRequest = new PermissionSet(PermissionState.None); 136PermissionSet filePermissionSet = ps.PermissionSet; 153return m_defaultRequest as PermissionSet;
system\security\policy\applicationtrust.cs (3)
80internal ApplicationTrust (PermissionSet defaultGrantSet) 87public ApplicationTrust(PermissionSet defaultGrantSet, IEnumerable<StrongName> fullTrustAssemblies) { 108private void InitDefaultGrantSet(PermissionSet defaultGrantSet) {
system\security\policy\assemblyevidencefactory.cs (3)
133PermissionSet minimumPermissions = null; 134PermissionSet optionalPermissions = null; 135PermissionSet refusedPermissions = null;
system\security\policy\codegroup.cs (2)
43internal CodeGroup( IMembershipCondition membershipCondition, PermissionSet permSet ) 348PermissionSet permSet = m_policy.GetPermissionSetNoCopy();
system\security\policy\filecodegroup.cs (1)
125PermissionSet permSet = new PermissionSet(PermissionState.None);
system\security\policy\permissionrequestevidence.cs (9)
27private PermissionSet m_request; 28private PermissionSet m_optional; 29private PermissionSet m_denied; 38public PermissionRequestEvidence(PermissionSet request, PermissionSet optional, PermissionSet denied) 56public PermissionSet RequestedPermissions 64public PermissionSet OptionalPermissions 72public PermissionSet DeniedPermissions
system\security\policy\policylevel.cs (3)
427public NamedPermissionSet ChangeNamedPermissionSet(string name, PermissionSet pSet) { 629foreach(PermissionSet ps in namedPermissionSets) 654internal static PermissionSet GetBuiltInSet(string name) {
system\security\policy\policystatement.cs (7)
41internal PermissionSet m_permSet; 60public PolicyStatement( PermissionSet permSet ) 65public PolicyStatement( PermissionSet permSet, PolicyStatementAttribute attributes ) 81private PolicyStatement( PermissionSet permSet, PolicyStatementAttribute attributes, bool copy ) 98public PermissionSet PermissionSet 124internal void SetPermissionSetNoCopy( PermissionSet permSet ) 129internal PermissionSet GetPermissionSetNoCopy()
system\security\policy\sitemembershipcondition.cs (1)
19using PermissionSet = System.Security.PermissionSet;
system\security\policy\strongnamemembershipcondition.cs (1)
19using PermissionSet = System.Security.PermissionSet;
system\security\policy\unioncodegroup.cs (1)
31internal UnionCodeGroup( IMembershipCondition membershipCondition, PermissionSet permSet )
system\security\policy\zonemembershipcondition.cs (1)
18using PermissionSet = System.Security.PermissionSet;
system\security\policymanager.cs (6)
71internal PermissionSet Resolve(Evidence evidence) 75PermissionSet grantSet = null; 90internal PermissionSet CodeGroupResolve (Evidence evidence, bool systemPolicy) { 93PermissionSet grant = null; 432PermissionSet policy = null; 452PermissionSet zonePolicy = null;
system\security\readonlypermissionset.cs (1)
64public override PermissionSet Copy()
system\security\securityelement.cs (1)
856PermissionSet pset = new PermissionSet(PermissionState.None);
system\security\securityexception.cs (16)
71PermissionSet.s_fullTrust.Assert(); 77internal static Exception MakeSecurityException(AssemblyName asmName, Evidence asmEvidence, PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh, SecurityAction action, Object demand, IPermission permThatFailed) 179PermissionSet.s_fullTrust.Assert(); 189PermissionSet.s_fullTrust.Assert(); 205internal SecurityException( PermissionSet grantedSetObj, PermissionSet refusedSetObj ) 208PermissionSet.s_fullTrust.Assert(); 218internal SecurityException( String message, PermissionSet grantedSetObj, PermissionSet refusedSetObj ) 221PermissionSet.s_fullTrust.Assert(); 272public SecurityException(string message, AssemblyName assemblyName, PermissionSet grant, PermissionSet refused, MethodInfo method, SecurityAction action, Object demanded, IPermission permThatFailed, Evidence evidence) 275PermissionSet.s_fullTrust.Assert(); 309PermissionSet.s_fullTrust.Assert(); 569PermissionSet.s_fullTrust.Assert();
system\security\securitymanager.cs (29)
68PermissionSet granted = null, denied = null; 80public static PermissionSet GetStandardSandbox(Evidence evidence) 110PermissionSet intranetGrantSet = BuiltInPermissionSets.LocalIntranet; 132PermissionSet internetGrantSet = BuiltInPermissionSets.Internet; 255static public PermissionSet ResolvePolicy(Evidence evidence, 256PermissionSet reqdPset, 257PermissionSet optPset, 258PermissionSet denyPset, 259out PermissionSet denied) 271static public PermissionSet ResolvePolicy(Evidence evidence) 288static public PermissionSet ResolvePolicy( Evidence[] evidences ) 298PermissionSet retval = ResolvePolicy( evidences[0] ); 352public static PermissionSet ResolveSystemPolicy (Evidence evidence) 406private static PermissionSet ResolveCasPolicy(Evidence evidence, 407PermissionSet reqdPset, 408PermissionSet optPset, 409PermissionSet denyPset, 410out PermissionSet denied, 418PermissionSet granted = ResolvePolicy(evidence, 430static private PermissionSet ResolvePolicy(Evidence evidence, 431PermissionSet reqdPset, 432PermissionSet optPset, 433PermissionSet denyPset, 434out PermissionSet denied, 442PermissionSet requested = null; 443PermissionSet optional; 444PermissionSet allowed; 568internal static int GetSpecialFlags (PermissionSet grantSet, PermissionSet deniedSet) {
system\security\securityruntime.cs (8)
55PermissionSet.s_fullTrust.Assert(); 68PermissionSet demandSet, 69out PermissionSet alteredDemandSet, 87PermissionSet demandSet, 88out PermissionSet alteredDemandSet, 130internal static void Assert(PermissionSet permSet, ref StackCrawlMark stackMark) 177internal static void Deny(PermissionSet permSet, ref StackCrawlMark stackMark) 206internal static void PermitOnly(PermissionSet permSet, ref StackCrawlMark stackMark)
system\security\util\tokenbasedset.cs (3)
396otherPerm = PermissionSet.CreatePerm(otherElem, false); 414thisPerm = PermissionSet.CreatePerm(thisElem, false); 445perm = PermissionSet.CreatePerm(obj, ignoreTypeLoadFailures);
system\security\util\xmlutil.cs (2)
187PermissionSet pset = ob as PermissionSet;
system\threading\compressedstack.cs (8)
446internal bool CheckSetDemand(PermissionSet pset , RuntimeMethodHandleInternal rmh) 457internal bool CheckSetDemandWithModificationNoHalt(PermissionSet pset, out PermissionSet alteredDemandSet, RuntimeMethodHandleInternal rmh) 475internal void DemandFlagsOrGrantSet(int flags, PermissionSet grantSet) 599internal extern static void GetDomainPermissionSets(IntPtr dcs, out PermissionSet granted, out PermissionSet refused); 605internal extern static bool GetDescriptorInfo(IntPtr dcs, int index, out PermissionSet granted, out PermissionSet refused, out Assembly assembly, out FrameSecurityDescriptor fsd);
system\timezoneinfo.cs (7)
929PermissionSet permSet = new PermissionSet(PermissionState.None); 1428PermissionSet permSet = new PermissionSet(PermissionState.None); 1453PermissionSet.RevertAssert(); 2483PermissionSet permSet = new PermissionSet(PermissionState.None); 2545PermissionSet.RevertAssert(); 2768PermissionSet permSet = new PermissionSet(PermissionState.None); 2840PermissionSet.RevertAssert();
PresentationCore (24)
Core\CSharp\MS\Internal\AppModel\CustomCredentialPolicy.cs (1)
226PermissionSet _environmentPermissionSet;
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
172PermissionSet permissionSet = new PermissionSet(null);
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
381System.Security.PermissionSet permissionSet = new PermissionSet(null);
Core\CSharp\System\Windows\Clipboard.cs (2)
728PermissionSet permissionSetSource; 745PermissionSet permissionSetDestination = SecurityHelper.ExtractAppDomainPermissionSetMinusSiteOfOrigin();
Core\CSharp\System\Windows\Input\Command\ApplicationCommands.cs (2)
249private static PermissionSet GetRequiredPermissions(CommandId commandId) 251PermissionSet permissions;
Core\CSharp\System\Windows\Input\Command\ISecureCommand.cs (1)
46PermissionSet UserInitiatedPermission { get; }
Core\CSharp\System\Windows\Input\Command\SecureUICommand.cs (3)
39readonly PermissionSet _userInitiated; 54internal SecureUICommand(PermissionSet userInitiated, string name, Type ownerType, byte commandId) 71public PermissionSet UserInitiatedPermission
Core\CSharp\System\Windows\Interop\HwndTarget.cs (1)
1597PermissionSet unpackPermissionSet = new PermissionSet(PermissionState.None);
Shared\MS\Internal\Commands\CommandLibraryHelper.cs (1)
28internal static RoutedUICommand CreateUICommand(string name, Type ownerType, byte commandId, PermissionSet ps)
Shared\MS\Internal\SecurityHelper.cs (11)
350static PermissionSet _fullTrustPermissionSet = null; 370PermissionSet psToCheck = new PermissionSet(PermissionState.None); 375PermissionSet permissionSetAppDomain = AppDomain.CurrentDomain.PermissionSet; 401PermissionSet psToCheck = new PermissionSet(PermissionState.None); 555internal static PermissionSet ExtractAppDomainPermissionSetMinusSiteOfOrigin() 557PermissionSet permissionSetAppDomain = AppDomain.CurrentDomain.PermissionSet; 801internal static PermissionSet EnvelopePermissionSet 813private static PermissionSet _envelopePermissionSet = null; 824private static PermissionSet CreateEnvelopePermissionSet() 826PermissionSet permissionSet = new PermissionSet(PermissionState.None); 1368static PermissionSet _plugInSerializerPermissions = null;
PresentationFramework (15)
src\Framework\MS\Internal\AppModel\ContentFilePart.cs (1)
134System.Security.PermissionSet permissionSet = new PermissionSet(null);
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (4)
134PermissionSet permissions = trust.DefaultGrantSet.PermissionSet; 176internal static PermissionSet AddPermissionForUri(PermissionSet originalPermSet, Uri srcUri) 178PermissionSet newPermSet = originalPermSet;
src\Framework\MS\Internal\Ink\XamlClipboardData.cs (1)
120PermissionSet permSet = SecurityHelper.ExtractAppDomainPermissionSetMinusSiteOfOrigin();
src\Framework\System\Windows\Application.cs (1)
2612PermissionSet permissions = new PermissionSet(null);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
778PermissionSet permissions = new PermissionSet(null);
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2271PermissionSet ps = new PermissionSet(PermissionState.None);
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
261PermissionSet ps = new PermissionSet(PermissionState.None);
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (1)
203PermissionSet psCurrentAppDomain = SecurityHelper.ExtractAppDomainPermissionSetMinusSiteOfOrigin();
src\Framework\System\Windows\Interop\DocobjHost.cs (3)
950PermissionSet permissionSet = new PermissionSet(null); 984PermissionSet permissionSet = new PermissionSet(null); 1011private ApplicationProxyInternal CreateAppDomainAndAppProxy(string domainName, string appBasePath, PermissionSet grantSet)
src\Shared\MS\Internal\SecurityHelper.cs (1)
1368static PermissionSet _plugInSerializerPermissions = null;
System (30)
compmod\system\componentmodel\design\DesigntimeLicenseContext.cs (1)
250PermissionSet perms = new PermissionSet(PermissionState.Unrestricted);
compmod\system\componentmodel\TypeDescriptor.cs (8)
369PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 372PermissionSet targetPermissions = type.Assembly.PermissionSet; 407PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 410PermissionSet targetPermissions = type.Assembly.PermissionSet; 3244PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 3247PermissionSet targetPermissions = type.Assembly.PermissionSet; 3281PermissionSet typeDescriptorPermission = new PermissionSet(PermissionState.None); 3284PermissionSet targetPermissions = type.Assembly.PermissionSet;
misc\SecurityUtils.cs (1)
73PermissionSet targetGrantSet = assembly.PermissionSet;
net\System\Net\_AutoWebProxyScriptWrapper.cs (1)
617PermissionSet permissionSet = new PermissionSet(PermissionState.None);
security\system\security\cryptography\x509\x509chain.cs (1)
198PermissionSet ps = new PermissionSet(PermissionState.None);
services\monitoring\system\diagnosticts\EventLog.cs (8)
71internal static PermissionSet _UnsafeGetAssertPermSet() { 73PermissionSet permissionSet = new PermissionSet(PermissionState.None); 435PermissionSet permissionSet = _UnsafeGetAssertPermSet(); 606PermissionSet permissionSet = _UnsafeGetAssertPermSet(); 702PermissionSet permissionSet = _UnsafeGetAssertPermSet(); 813PermissionSet permissionSet = _UnsafeGetAssertPermSet(); 878PermissionSet permissionSet = _UnsafeGetAssertPermSet(); 986PermissionSet permissionSet = _UnsafeGetAssertPermSet();
services\monitoring\system\diagnosticts\EventLogInternal.cs (5)
269PermissionSet permissionSet = EventLog._UnsafeGetAssertPermSet(); 380PermissionSet permissionSet = EventLog._UnsafeGetAssertPermSet(); 1182PermissionSet permissionSet = EventLog._UnsafeGetAssertPermSet(); 1260PermissionSet permissionSet = EventLog._UnsafeGetAssertPermSet(); 1353PermissionSet permissionSet = EventLog._UnsafeGetAssertPermSet();
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (5)
235PermissionSet ps = new PermissionSet(PermissionState.None); 243PermissionSet.RevertAssert(); 621PermissionSet ps = new PermissionSet(PermissionState.None); 676PermissionSet.RevertAssert(); 958PermissionSet ps = new PermissionSet(PermissionState.None);
System.Activities (3)
System\Activities\Debugger\StateManager.cs (1)
715PermissionSet unmanagedCodePermissionSet = new PermissionSet(PermissionState.None);
System\Activities\Runtime\CallbackWrapper.cs (2)
21static PermissionSet ReflectionMemberAccessPermissionSet = null; 286PermissionSet myPermissionSet = new PermissionSet(PermissionState.None);
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
605PermissionSet standardFolderSandbox = SecurityManager.GetStandardSandbox(folderEvidence);
System.AddIn (17)
System\Addin\Hosting\ActivationWorker.cs (2)
84PermissionSet permissionSet = new PermissionSet(PermissionState.None); 255PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInActivator.cs (9)
61PermissionSet permissionSet = GetPermissionSetForLevel(level); 70internal static PermissionSet GetPermissionSetForLevel(AddInSecurityLevel level) 111private static AppDomain CreateDomain(AddInToken token, PermissionSet permissionSet, String appDomainName) 128private static T Activate<T>(AddInToken token, PermissionSet permissionSet, String appDomainName) 192internal static T Activate<T>(AddInToken token, PermissionSet permissionSet) 211internal static T Activate<T>(AddInToken token, AddInProcess process, PermissionSet permissionSet) 243PermissionSet permissionSet = GetPermissionSetForLevel(level); 321PermissionSet permissionSet = new PermissionSet(PermissionState.None); 492PermissionSet assertSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInControllerImpl.cs (1)
205PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInServer.cs (2)
52public AddInServerWorker CreateDomain(AddInToken token, PermissionSet permissionSet) 120PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInStore.cs (1)
1021PermissionSet permissionSet = new PermissionSet(PermissionState.None);
System\Addin\Hosting\AddInToken.cs (2)
288public T Activate<T>(PermissionSet permissions) 300public T Activate<T>(AddInProcess process, PermissionSet permissionSet)
System.Configuration (12)
System\Configuration\BaseConfigurationRecord.cs (4)
141private PermissionSet _restrictedPermissions; // cached restricted permission set 272internal PermissionSet GetRestrictedPermissions() 289PermissionSet restrictedPermissions; 318private void GetRestrictedPermissionsWithAssert(out PermissionSet permissionSet, out bool isHostReady) {
System\Configuration\ClientConfigurationHost.cs (1)
456public override void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
System\Configuration\Internal\DelegatingConfigHost.cs (1)
190public virtual void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
System\Configuration\Internal\IInternalConfigHost.cs (1)
87void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady);
System\Configuration\Internal\InternalConfigHost.cs (1)
394void IInternalConfigHost.GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
System\Configuration\RuntimeConfigurationRecord.cs (3)
82PermissionSet permissionSet = GetRestrictedPermissions(); 179PermissionSet permissionSet = configRecord.GetRestrictedPermissions(); 290PermissionSet permissionSet = configRecord.GetRestrictedPermissions();
System\Configuration\TypeUtil.cs (1)
251static private volatile PermissionSet s_fullTrustPermissionSet;
System.Data (19)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowDesigner.cs (1)
605PermissionSet standardFolderSandbox = SecurityManager.GetStandardSandbox(folderEvidence);
fx\src\data\System\Data\Common\DbConnectionOptions.cs (2)
130private System.Security.PermissionSet _permissionset; 364protected internal virtual System.Security.PermissionSet CreatePermissionSet() {
fx\src\data\System\Data\Odbc\OdbcConnectionString.cs (2)
44protected internal override System.Security.PermissionSet CreatePermissionSet() { 45System.Security.PermissionSet permissionSet;
fx\src\data\System\Data\OleDb\oledbconnectionstring.cs (2)
158protected internal override System.Security.PermissionSet CreatePermissionSet() { 159System.Security.PermissionSet permissionSet;
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\ProviderBase\DbConnectionHelper.cs (1)
214System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
fx\src\data\System\Data\SqlClient\LocalDBAPI.cs (1)
29static PermissionSet _fullTrust = null;
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
2058System.Security.PermissionSet permissionSet = connectionOptions.CreatePermissionSet(); 2115System.Security.PermissionSet permissionSet = connectionOptions.CreatePermissionSet();
fx\src\data\System\Data\SqlClient\SqlConnectionPoolGroupProviderInfo.cs (4)
18private System.Security.PermissionSet _failoverPermissionSet; 60private System.Security.PermissionSet CreateFailoverPermission(SqlConnectionString userConnectionOptions, string actualFailoverPartner) { 103System.Security.PermissionSet failoverPermissionSet = CreateFailoverPermission(userConnectionOptions, actualFailoverPartner); 118System.Security.PermissionSet failoverPermissionSet = _failoverPermissionSet;
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (2)
596protected internal override System.Security.PermissionSet CreatePermissionSet() { 597System.Security.PermissionSet permissionSet = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.None);
System.Data.Entity (1)
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
1613PermissionSet serializationFormatterPermissions = new PermissionSet(null);
System.Data.Linq (1)
parent\parent\misc\SecurityUtils.cs (1)
73PermissionSet targetGrantSet = assembly.PermissionSet;
System.Data.SqlXml (5)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
29public static readonly PermissionSet CreateModulePermissionSet; // Permission set that contains permissions required for generating module
System\Xml\Xsl\XsltOld\Processor.cs (1)
58public PermissionSet permissions; // used by XsltCompiledContext in document and extension functions
System\Xml\Xsl\XsltOld\RootAction.cs (1)
83public PermissionSet permissions;
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (2)
788private PermissionSet permissions; 790public FuncExtension(object extension, MethodInfo method, PermissionSet permissions) {
System.Drawing (3)
commonui\System\Drawing\IntSecurity.cs (3)
61static PermissionSet allPrintingAndUnmanagedCode; 62public static PermissionSet AllPrintingAndUnmanagedCode { 65PermissionSet temp = new PermissionSet(PermissionState.None);
System.IdentityModel (1)
System\IdentityModel\Selectors\X509CertificateChain.cs (1)
94PermissionSet ps = new PermissionSet(PermissionState.None);
System.Runtime.Remoting (2)
channels\sinks\binaryformattersinks.cs (1)
571PermissionSet currentPermissionSet = null;
channels\sinks\soapformattersinks.cs (1)
639PermissionSet currentPermissionSet = null;
System.Security (1)
system\security\cryptography\xml\encryptedxml.cs (1)
277PermissionSet ps = SecurityManager.GetStandardSandbox(m_evidence);
System.ServiceModel (1)
System\ServiceModel\Dispatcher\PartialTrustValidationBehavior.cs (1)
164static readonly PermissionSet fullTrust = new PermissionSet(PermissionState.Unrestricted);
System.ServiceModel.Activation (2)
System\ServiceModel\Activation\AspNetPartialTrustHelpers.cs (1)
35static bool IsFullTrust(PermissionSet perms)
System\ServiceModel\Activation\HostedTransportConfigurationManager.cs (1)
86PermissionSet.RevertAssert();
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (1)
811PermissionSet ps = new PermissionSet(PermissionState.Unrestricted);
System.ServiceModel.Internals (2)
System\Runtime\PartialTrustHelpers.cs (2)
111internal static bool CheckAppDomainPermissions(PermissionSet permissions) 122PermissionSet permissions = new PermissionSet(PermissionState.Unrestricted);
System.Web (17)
Configuration\RemoteWebConfigurationHost.cs (1)
302public override void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
Configuration\WebConfigurationHost.cs (2)
716internal static void StaticGetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) { 738public override void GetRestrictedPermissions(IInternalConfigRecord configRecord, out PermissionSet permissionSet, out bool isHostReady) {
ErrorFormatter.cs (1)
467PermissionSet ps = HttpRuntime.NamedPermissionSet;
Hosting\ApplicationManager.cs (5)
917PermissionSet permissionSet = null; 1505PermissionSet fullTrust = new PermissionSet(PermissionState.Unrestricted); 1623private PermissionSet Nothing = new PermissionSet(PermissionState.None); 1624private PermissionSet FullTrust = new PermissionSet(PermissionState.Unrestricted); 1634public override PermissionSet ResolvePolicy(Evidence evidence) {
HttpRuntime.cs (1)
3191PermissionSet fullTrust = new PermissionSet(PermissionState.Unrestricted);
parent\parent\parent\Misc\SecurityUtils.cs (1)
73PermissionSet targetGrantSet = assembly.PermissionSet;
UI\WebParts\ImportCatalogPart.cs (2)
173PermissionSet pset = new PermissionSet(PermissionState.None); 218PermissionSet mediumPset = new PermissionSet(PermissionState.None);
UI\WebParts\WebPartManager.cs (4)
69private PermissionSet _minimalPermissionSet; 70private PermissionSet _mediumPermissionSet; 461protected virtual PermissionSet MediumPermissionSet { 474protected virtual PermissionSet MinimalPermissionSet {
System.Windows.Forms (19)
misc\SecurityUtils.cs (1)
73PermissionSet targetGrantSet = assembly.PermissionSet;
winforms\Managed\System\WinForms\ListView.cs (5)
2356System.Security.PermissionSet.RevertAssert(); 2899System.Security.PermissionSet.RevertAssert(); 3020System.Security.PermissionSet.RevertAssert(); 4795System.Security.PermissionSet permSet = new System.Security.PermissionSet(PermissionState.Unrestricted); 4810System.Security.PermissionSet.RevertAssert();
winforms\Managed\System\WinForms\TrustManager.cs (8)
428PermissionSet permSetDefaultZone = SecurityManager.GetStandardSandbox(info.ApplicationEvidence); 429PermissionSet permSetRequested = GetRequestedPermissionSet(info); 521PermissionSet pset = info.DefaultRequestSet; 562PermissionSet permSetRequested = GetRequestedPermissionSet(info); 563PermissionSet permSetGranted = matchingTrust.DefaultGrantSet.PermissionSet; //PolicyStatement makes of copy of its permission set here. 670private static PermissionSet GetRequestedPermissionSet(ApplicationSecurityInfo info) 674PermissionSet pset = info.DefaultRequestSet; 675PermissionSet permSetRequested = null;
winforms\Managed\System\WinForms\WinFormsSecurity.cs (5)
30private static PermissionSet allPrintingAndUnmanagedCode; // Can't assert twice in the same method 34private static PermissionSet clipboardWrite; // Can't assert twice in the same method 121public static PermissionSet AllPrintingAndUnmanagedCode { // Can't assert twice in the same method. See ASURT 52788. 124PermissionSet temp = new PermissionSet(PermissionState.None); 160public static PermissionSet ClipboardWrite { // Can't assert OwnClipboard & UnmanagedCode in the same context, need permission set.
System.Xml (6)
System\Xml\Serialization\Compilation.cs (1)
251PermissionSet perms = new PermissionSet(PermissionState.None);
System\Xml\Serialization\Compiler.cs (2)
121PermissionSet perms = new PermissionSet(PermissionState.None); 169PermissionSet perms = new PermissionSet(PermissionState.None);
System\Xml\XmlSecureResolver.cs (2)
18PermissionSet permissionSet; 24public XmlSecureResolver(XmlResolver resolver, PermissionSet permissionSet) {
System\Xml\Xslt\XslCompiledTransform.cs (1)
51private static readonly PermissionSet MemberAccessPermissionSet;
WindowsBase (8)
Base\MS\Internal\AssemblyHelper.cs (1)
214PermissionSet ps = new PermissionSet(PermissionState.Unrestricted);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (3)
140PermissionSet.RevertAssert(); 871PermissionSet.RevertAssert(); 1040PermissionSet.RevertAssert();
Shared\MS\Internal\Invariant.cs (2)
308PermissionSet ps = new PermissionSet(PermissionState.None); 320PermissionSet.RevertAssert();
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (1)
553PermissionSet permissionSet = new PermissionSet(PermissionState.None);
Shared\MS\Internal\TextServicesLoader.cs (1)
212PermissionSet ps = new PermissionSet(PermissionState.None);