2 implementations of Demand
mscorlib (2)
system\security\codeaccesspermission.cs (1)
74public void Demand()
system\security\permissionset.cs (1)
1502public void Demand()
29 references to Demand
System.Web (29)
Cache\CacheDependency.cs (2)
348InternalSecurityPermissions.PathDiscovery(f).Demand(); 417InternalSecurityPermissions.PathDiscovery(f).Demand();
Compilation\AssemblyBuilder.cs (1)
421InternalSecurityPermissions.PathDiscovery(tempPath).Demand();
Hosting\HostingEnvironment.cs (4)
1340InternalSecurityPermissions.AspNetHostingPermissionLevelHigh.Demand(); 1364InternalSecurityPermissions.AppPathDiscovery.Demand(); 1397InternalSecurityPermissions.AspNetHostingPermissionLevelMedium.Demand(); 1621InternalSecurityPermissions.PathDiscovery(path).Demand();
Hosting\SimpleWorkerRequest.cs (6)
163InternalSecurityPermissions.PathDiscovery(path).Demand(); 188InternalSecurityPermissions.PathDiscovery(_appPhysPath).Demand(); 218InternalSecurityPermissions.PathDiscovery(mappedPath).Demand(); 230InternalSecurityPermissions.PathDiscovery(path).Demand(); 246InternalSecurityPermissions.PathDiscovery(path).Demand(); 261InternalSecurityPermissions.PathDiscovery(_installDir).Demand();
HttpContext.cs (1)
677InternalSecurityPermissions.UnmanagedCode.Demand();
HttpException.cs (1)
528InternalSecurityPermissions.PathDiscovery(physicalPath).Demand();
HttpRequest.cs (3)
1665InternalSecurityPermissions.PathDiscovery(path).Demand(); 1721InternalSecurityPermissions.AppPathDiscovery.Demand(); 3024InternalSecurityPermissions.PathDiscovery(realPath).Demand();
HttpResponse.cs (1)
2888InternalSecurityPermissions.FileReadAccess(filename).Demand();
HttpRuntime.cs (6)
2828InternalSecurityPermissions.PathDiscovery(path).Demand(); 2887InternalSecurityPermissions.PathDiscovery(path).Demand(); 2904InternalSecurityPermissions.PathDiscovery(path).Demand(); 2929InternalSecurityPermissions.PathDiscovery(path).Demand(); 2963InternalSecurityPermissions.AppPathDiscovery.Demand(); 3026InternalSecurityPermissions.PathDiscovery(path).Demand();
httpserverutility.cs (1)
344InternalSecurityPermissions.FileReadAccess(physPath).Demand();
Security\PassportAuthenticationModule.cs (2)
97InternalSecurityPermissions.ControlPrincipal.Demand(); 107InternalSecurityPermissions.ControlPrincipal.Demand();
WorkerRequest.cs (1)
950InternalSecurityPermissions.UnmanagedCode.Demand();