Implemented interface members:
method
Demand
System.Security.IStackWalk.Demand()
method
Demand
System.Security.IPermission.Demand()
823 references to Demand
mscorlib (132)
microsoft\win32\registrykey.cs (2)
2072new RegistryPermission(access, path).Demand(); 2079new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\appdomain.cs (1)
3437new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand();
system\appdomainmanager.cs (1)
68new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand();
system\AppDomainSetup.cs (1)
829needFullPath: false).Demand();
system\cfgparser.cs (1)
274(new FileIOPermission( FileIOPermissionAccess.Read, System.IO.Path.GetFullPathInternal( fileName ) )).Demand();
system\console.cs (19)
571new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 622new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 761new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 802new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 829new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 890new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1039new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1099new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1213new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1283new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1325new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1357new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1411new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1643new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1807new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1824new UIPermission(UIPermissionWindow.SafeTopLevelWindows).Demand(); 1911new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 1932new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 1955new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\delegateserializationholder.cs (2)
32new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 248new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
system\diagnostics\debugger.cs (3)
77new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 101new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 133new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\diagnostics\stackframe.cs (2)
219perm.Demand(); 297perm.Demand();
system\environment.cs (18)
362new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Path").Demand(); 519new EnvironmentPermission(EnvironmentPermissionAccess.Read, vars.ToString()).Demand(); 546new EnvironmentPermission(EnvironmentPermissionAccess.Read, "COMPUTERNAME").Demand(); 570(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 587new EnvironmentPermission(EnvironmentPermissionAccess.Read, "Path").Demand(); 628(new EnvironmentPermission(EnvironmentPermissionAccess.Read, variable)).Demand(); 667(new EnvironmentPermission(PermissionState.Unrestricted)).Demand(); 837new EnvironmentPermission(EnvironmentPermissionAccess.Read, vars.ToString()).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(); 1395new EnvironmentPermission(EnvironmentPermissionAccess.Read,"UserName").Demand(); 1501createPermission.Demand(); 1551new FileIOPermission(FileIOPermissionAccess.PathDiscovery, s).Demand(); 1563new EnvironmentPermission(EnvironmentPermissionAccess.Read,"UserDomain").Demand();
system\io\directory.cs (2)
1019new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 1186new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\io\driveinfo.cs (3)
87new FileIOPermission(FileIOPermissionAccess.PathDiscovery, demandPath).Demand(); 98new FileIOPermission(FileIOPermissionAccess.PathDiscovery, demandPath).Demand(); 263new FileIOPermission(FileIOPermissionAccess.Write, demandPath).Demand();
system\io\file.cs (1)
1337perm.Demand();
system\io\filesystemenumerable.cs (4)
238new FileIOPermission(FileIOPermissionAccess.PathDiscovery, demandPaths, false, false).Demand(); 348new FileIOPermission(FileIOPermissionAccess.PathDiscovery, demandPaths, false, false).Demand(); 700new FileIOPermission(FileIOPermissionAccess.Read, new string[] { fullPath }, false, false).Demand(); 729new FileIOPermission(FileIOPermissionAccess.Read, new string[] { fullPath + "\\." }, false, false).Demand();
system\io\isolatedstorage\isolatedstorage.cs (1)
1154ip.Demand();
system\io\isolatedstorage\isolatedstoragefile.cs (3)
1179permission.Demand(); 2349s_PermAdminUser.Demand(); 2449new FileIOPermission(FileIOPermissionAccess.Read, demandPath, false, false).Demand();
system\io\path.cs (1)
1063new EnvironmentPermission(PermissionState.Unrestricted).Demand();
system\io\unmanagedmemorystream.cs (2)
168new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 247new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\reflection\assembly.cs (8)
587new FileIOPermission(FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.Read, path).Demand(); 609new FileIOPermission(FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.Read, path).Demand(); 1840new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 1859new FileIOPermission( FileIOPermissionAccess.PathDiscovery | FileIOPermissionAccess.Read , urlString.GetFileName() ).Demand(); 2019new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 2385new FileIOPermission( FileIOPermissionAccess.PathDiscovery, location ).Demand(); 2606new FileIOPermission( FileIOPermissionAccess.PathDiscovery, urlString.GetFileName() ).Demand(); 2803new FileIOPermission(access, codeBase).Demand();
system\reflection\assemblyname.cs (1)
212new FileIOPermission( FileIOPermissionAccess.PathDiscovery, fullPath ).Demand();
system\reflection\ConstructorInfo.cs (2)
626new SecurityPermission(SecurityPermissionFlag.SkipVerification).Demand(); 734new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\reflection\emit\assemblybuilder.cs (6)
353new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 717new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 1541new FileIOPermission(FileIOPermissionAccess.Read, strFullFileName).Demand(); 1847new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.Append, assemblyFileName).Demand(); 1951new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.Append, strModFileName).Demand(); 2041new FileIOPermission(FileIOPermissionAccess.Write | FileIOPermissionAccess.Append, tempRes.m_strFullFileName).Demand();
system\reflection\emit\dynamicmethod.cs (4)
465new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 502new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 507new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand(); 794new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\reflection\emit\modulebuilder.cs (2)
1005new FileIOPermission( FileIOPermissionAccess.PathDiscovery, fullyQualifiedName ).Demand(); 1442new FileIOPermission(FileIOPermissionAccess.Read, strFullFileName).Demand();
system\reflection\module.cs (1)
1107new FileIOPermission( FileIOPermissionAccess.PathDiscovery, fullyQualifiedName ).Demand();
system\rttype.cs (1)
5305new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
system\runtime\interopservices\runtimeenvironment.cs (2)
101new FileIOPermission(FileIOPermissionAccess.PathDiscovery, dir).Demand(); 122new FileIOPermission(FileIOPermissionAccess.PathDiscovery, path).Demand();
system\security\accesscontrol\registrysecurity.cs (2)
155new RegistryPermission(RegistryPermissionAccess.NoAccess, AccessControlActions.View, name).Demand(); 240new RegistryPermission(RegistryPermissionAccess.NoAccess, AccessControlActions.Change, keyName).Demand();
system\security\accesscontrol\win32.cs (2)
95new SecurityPermission( SecurityPermissionFlag.UnmanagedCode ).Demand(); 261new SecurityPermission( SecurityPermissionFlag.UnmanagedCode ).Demand();
system\security\cryptography\dsacryptoserviceprovider.cs (4)
181kp.Demand(); 198kp.Demand(); 229kp.Demand(); 318kp.Demand();
system\security\cryptography\icspasymmetricalgorithm.cs (2)
36kp.Demand(); 192kp.Demand();
system\security\cryptography\rsacryptoserviceprovider.cs (5)
233kp.Demand(); 252kp.Demand(); 292kp.Demand(); 360kp.Demand(); 434kp.Demand();
system\security\cryptography\utils.cs (6)
219kp.Demand(); 228kp.Demand(); 341kp.Demand(); 361kp.Demand(); 432kp.Demand(); 490uiPermission.Demand();
system\security\cryptography\x509certificates\x509certificate.cs (4)
752kp.Demand(); 794kp.Demand(); 828new FileIOPermission (FileIOPermissionAccess.Read, fullPath).Demand(); 834kp.Demand();
system\security\permissions\fileiopermission.cs (5)
1009new FileIOPermission(access, new string[] { fullPath }, checkForDuplicates, needFullPath).Demand(); 1032new FileIOPermission(access, fullPathList, checkForDuplicates, needFullPath).Demand(); 1048new FileIOPermission(state).Demand(); 1058new FileIOPermission(access, control, new string[] { fullPath }, checkForDuplicates, needFullPath).Demand(); 1071new FileIOPermission(access, control, fullPathList, checkForDuplicates, needFullPath).Demand();
system\security\policy\evidence.cs (6)
365new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 481new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 597new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 812new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 1433new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand(); 1463new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand();
system\security\securityexception.cs (1)
619new SecurityPermission(SecurityPermissionFlag.ControlEvidence | SecurityPermissionFlag.ControlPolicy).Demand();
system\security\securitymanager.cs (1)
185perm.Demand();
PresentationCore (27)
Core\CSharp\System\Windows\Automation\Peers\AutomationPeer.cs (1)
231(new SecurityPermission(SecurityPermissionFlag.UnmanagedCode)).Demand();
Core\CSharp\System\Windows\Media\MediaPlayerState.cs (4)
1082(new FileIOPermission(FileIOPermissionAccess.Read, toOpen)).Demand(); 1100(new FileIOPermission(FileIOPermissionAccess.Read, toOpen)).Demand(); 1117(new WebPermission(NetworkAccess.Connect, toOpen)).Demand(); 1122(new WebPermission(NetworkAccess.Connect, toOpen)).Demand();
Shared\MS\Internal\SecurityHelper.cs (22)
115_unmanagedCodePermission.Demand(); 151CreateUserInitiatedRoutedEventPermission().Demand(); 452(new FileIOPermission(FileIOPermissionAccess.Read, uri.LocalPath)).Demand(); 456(new WebPermission(NetworkAccess.Connect, BindUriHelper.UriToString(uri))).Demand(); 493(new FileIOPermission(FileIOPermissionAccess.Read, contentUri.LocalPath)).Demand(); 548permobj.Demand(); 614_serializationSecurityPermission.Demand(); 660_uiPermissionAllClipboard.Demand(); 670new FileIOPermission(FileIOPermissionAccess.PathDiscovery, path).Demand(); 702_unrestrictedEnvironmentPermission.Demand(); 714permission.Demand(); 769permission.Demand(); 983_unrestrictedRegistryPermission.Demand(); 999_allWindowsUIPermission.Demand(); 1014_infrastructurePermission.Demand(); 1033imagePermissionToDemand )).Demand(); 1056(new MediaPermission(audioPermissionToDemand,videoPermissionToDemand,imagePermissionToDemand)).Demand(); 1080_unrestrictedUIPermission.Demand(); 1111new FileIOPermission(FileIOPermissionAccess.Read, fileName).Demand(); 1247casPermission.Demand(); 1341(new FileIOPermission(FileIOPermissionAccess.Read, toOpen)).Demand(); 1346new WebPermission(NetworkAccess.Connect, finalUri).Demand();
PresentationFramework (25)
src\Framework\MS\Internal\AppModel\ApplicationProxyInternal.cs (1)
848new SecurityPermission(SecurityPermissionFlag.SerializationFormatter).Demand();
src\Framework\MS\Internal\DataStreams.cs (1)
295 new SecurityPermission(SecurityPermissionFlag.SerializationFormatter).Demand(); // prevent any journal metadata de-serialization in partial trust
src\Framework\System\Windows\Controls\WebBrowser.cs (2)
175(new WebBrowserPermission(WebBrowserPermissionLevel.Safe)).Demand(); 1222(new System.Net.WebPermission(PermissionState.Unrestricted)).Demand();
src\Framework\System\Windows\DeferrableContent.cs (1)
64loadPermission.Demand();
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
883(new System.Net.WebPermission(PermissionState.Unrestricted)).Demand();
src\Framework\System\Windows\Documents\NLGSpellerInterop.cs (1)
1108fileIOPermission.Demand();
src\Framework\System\Windows\Documents\RubberbandSelector.cs (2)
190(new SecurityPermission(SecurityPermissionFlag.SerializationFormatter | SecurityPermissionFlag.UnmanagedCode)).Demand(); 192mediaAccessPermission.Demand();
src\Framework\System\windows\Documents\TextEditorCopyPaste.cs (2)
355new UIPermission(UIPermissionClipboard.OwnClipboard).Demand(); 426new UIPermission(UIPermissionClipboard.OwnClipboard).Demand();
src\Framework\System\Windows\Documents\WinRTSpellerInterop.cs (4)
248new FileIOPermission(FileIOPermissionAccess.AllAccess, filePath).Demand(); 500new FileIOPermission(FileIOPermissionAccess.Read, lexiconFilePath).Demand(); 609new FileIOPermission(FileIOPermissionAccess.AllAccess, filePath).Demand(); 702new FileIOPermission(FileIOPermissionAccess.Read, sourcePath).Demand();
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
399(new WebBrowserPermission(WebBrowserPermissionLevel.Safe)).Demand();
src\Framework\System\Windows\TemplateContent.cs (1)
209loadPermission.Demand();
src\Shared\MS\Internal\SecurityHelper.cs (8)
115_unmanagedCodePermission.Demand(); 186CachedWebBrowserPermission.Demand(); 288_defaultPrintingPermission.Demand(); 309_reflectionPermission.Demand(); 999_allWindowsUIPermission.Demand(); 1080_unrestrictedUIPermission.Demand(); 1143_unrestrictedFileIOPermission.Demand(); 1157_fileDialogOpenPermission.Demand();
System (197)
compmod\microsoft\csharp\csharpcodeprovider.cs (6)
3374new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 3652new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 3674new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 3696new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 3719new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 3795new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
2805new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\microsoft\win32\SystemEvents.cs (1)
1272new FileIOPermission(FileIOPermissionAccess.PathDiscovery, executablePath).Demand();
compmod\system\codedom\compiler\CodeCompiler.cs (6)
180new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 202new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 224new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 247new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 323new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 487new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\system\codedom\compiler\Executor.cs (1)
139IntSecurity.UnmanagedCode.Demand();
compmod\system\codedom\compiler\TempFiles.cs (1)
217new FileIOPermission(FileIOPermissionAccess.AllAccess, full).Demand();
compmod\system\componentmodel\Win32Exception.cs (1)
78IntSecurity.UnmanagedCode.Demand();
compmod\system\diagnostics\DefaultTraceListener.cs (1)
220new UIPermission(UIPermissionWindow.SafeSubWindows).Demand();
compmod\system\diagnostics\ListenerElementsCollection.cs (1)
52new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\system\diagnostics\Trace.cs (2)
34new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); 116new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
compmod\system\diagnostics\TraceEventCache.cs (2)
34new EnvironmentPermission(PermissionState.Unrestricted).Demand(); 80new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
misc\SecurityUtils.cs (1)
64MemberAccessPermission.Demand();
net\System\Net\_SecureChannel.cs (1)
344ExceptionHelper.KeyContainerPermissionOpen.Demand();
net\System\Net\_SpnDictionary.cs (9)
46ExceptionHelper.WebPermissionUnrestricted.Demand(); 109ExceptionHelper.WebPermissionUnrestricted.Demand(); 117ExceptionHelper.WebPermissionUnrestricted.Demand(); 124ExceptionHelper.WebPermissionUnrestricted.Demand(); 139ExceptionHelper.WebPermissionUnrestricted.Demand(); 149ExceptionHelper.WebPermissionUnrestricted.Demand(); 160ExceptionHelper.WebPermissionUnrestricted.Demand(); 172ExceptionHelper.WebPermissionUnrestricted.Demand(); 198new WebPermission(NetworkAccess.Connect, new Uri(key)).Demand();
net\System\Net\AuthenticationManager.cs (4)
142ExceptionHelper.ControlPolicyPermission.Demand(); 206ExceptionHelper.UnmanagedPermission.Demand(); 215ExceptionHelper.UnmanagedPermission.Demand(); 224ExceptionHelper.UnmanagedPermission.Demand();
net\System\Net\Configuration\AuthenticationModulesSection.cs (1)
30ExceptionHelper.UnmanagedPermission.Demand();
net\System\Net\Configuration\DefaultProxySection.cs (1)
40ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\Configuration\HttpWebRequestElement.cs (1)
40ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\Configuration\RequestCachingSection.cs (1)
94ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\Configuration\ServicePointManagerElement.cs (1)
44ExceptionHelper.UnmanagedPermission.Demand();
net\System\Net\Configuration\SmtpNetworkElement.cs (1)
43(new SmtpPermission(SmtpAccess.ConnectToUnrestrictedPort)).Demand();
net\System\Net\Configuration\SocketElement.cs (1)
32ExceptionHelper.UnrestrictedSocketPermission.Demand();
net\System\Net\Configuration\WebProxyScriptElement.cs (1)
33ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\Configuration\WebRequestModulesSection.cs (1)
30ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\CredentialCache.cs (2)
305new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME").Demand(); 314new EnvironmentPermission(EnvironmentPermissionAccess.Read, "USERNAME").Demand();
net\System\Net\DNS.cs (10)
191s_DnsPermission.Demand(); 299s_DnsPermission.Demand(); 333s_DnsPermission.Demand(); 448s_DnsPermission.Demand(); 502s_DnsPermission.Demand(); 703s_DnsPermission.Demand(); 758s_DnsPermission.Demand(); 861s_DnsPermission.Demand(); 895s_DnsPermission.Demand(); 918s_DnsPermission.Demand();
net\System\Net\FtpWebRequest.cs (4)
272ExceptionHelper.WebPermissionUnrestricted.Demand(); 449ExceptionHelper.WebPermissionUnrestricted.Demand(); 453ExceptionHelper.WebPermissionUnrestricted.Demand(); 517(new WebPermission(NetworkAccess.Connect, uri)).Demand();
net\System\Net\HttpListener.cs (3)
403new SecurityPermission(SecurityPermissionFlag.ControlPrincipal).Demand(); 443new SecurityPermission(SecurityPermissionFlag.ControlPrincipal).Demand(); 631(new WebPermission(NetworkAccess.Accept, uriPrefix)).Demand();
net\System\Net\HttpListenerContext.cs (1)
78new SecurityPermission(SecurityPermissionFlag.ControlPrincipal).Demand();
net\System\Net\HttpWebRequest.cs (9)
595ExceptionHelper.WebPermissionUnrestricted.Demand(); 714ExceptionHelper.WebPermissionUnrestricted.Demand(); 746ExceptionHelper.WebPermissionUnrestricted.Demand(); 762ExceptionHelper.WebPermissionUnrestricted.Demand(); 2691ExceptionHelper.WebPermissionUnrestricted.Demand(); 2701ExceptionHelper.WebPermissionUnrestricted.Demand(); 5267ExceptionHelper.WebPermissionUnrestricted.Demand(); 5498ExceptionHelper.InfrastructurePermission.Demand(); 5949permission.Demand();
net\System\Net\Internal.cs (1)
145((CodeAccessPermission) state).Demand();
net\System\Net\IntranetCredentialPolicy.cs (1)
70ExceptionHelper.ControlPolicyPermission.Demand();
net\System\Net\mail\SmtpClient.cs (3)
107new SmtpPermission(SmtpAccess.Connect).Demand(); 110new SmtpPermission(SmtpAccess.ConnectToUnrestrictedPort).Demand(); 247new SmtpPermission(SmtpAccess.ConnectToUnrestrictedPort).Demand();
net\System\Net\NetworkCredential.cs (4)
108m_environmentUserNamePermission.Demand(); 127ExceptionHelper.UnmanagedPermission.Demand(); 154ExceptionHelper.UnmanagedPermission.Demand(); 175m_environmentDomainNamePermission.Demand();
net\System\Net\NetworkInformation\IPGlobalProperties.cs (1)
16(new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
net\System\Net\NetworkInformation\NetworkInterface.cs (1)
11(new NetworkInformationPermission(NetworkInformationAccess.Read)).Demand();
net\System\Net\NetworkInformation\ping.cs (3)
345(new NetworkInformationPermission(NetworkInformationAccess.Ping)).Demand(); 478(new NetworkInformationPermission(NetworkInformationAccess.Ping)).Demand(); 610(new NetworkInformationPermission(NetworkInformationAccess.Ping)).Demand();
net\System\Net\SecureProtocols\_NegoState.cs (1)
213ExceptionHelper.ControlPrincipalPermission.Demand();
net\System\Net\SecureProtocols\NegotiateStream.cs (1)
417new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
net\System\Net\ServicePoint.cs (2)
99ExceptionHelper.InfrastructurePermission.Demand(); 467ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\ServicePointManager.cs (6)
400ExceptionHelper.WebPermissionUnrestricted.Demand(); 416ExceptionHelper.WebPermissionUnrestricted.Demand(); 437ExceptionHelper.WebPermissionUnrestricted.Demand(); 528ExceptionHelper.UnmanagedPermission.Demand(); 556ExceptionHelper.InfrastructurePermission.Demand(); 602ExceptionHelper.UnmanagedPermission.Demand();
net\System\Net\Sockets\Socket.cs (9)
174ExceptionHelper.UnrestrictedSocketPermission.Demand(); 489ExceptionHelper.UnmanagedPermission.Demand(); 888socketPermission.Demand(); 902ExceptionHelper.UnmanagedPermission.Demand(); 2192ExceptionHelper.UnmanagedPermission.Demand(); 2800ExceptionHelper.UnrestrictedSocketPermission.Demand(); 5853ExceptionHelper.UnmanagedPermission.Demand(); 5934socketPermission.Demand(); 5943ExceptionHelper.UnmanagedPermission.Demand();
net\System\Net\webclient.cs (2)
241ExceptionHelper.WebPermissionUnrestricted.Demand(); 249ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\webproxy.cs (2)
417ExceptionHelper.WebPermissionUnrestricted.Demand(); 438ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\Net\WebRequest.cs (5)
364ExceptionHelper.WebPermissionUnrestricted.Demand(); 592ExceptionHelper.WebPermissionUnrestricted.Demand(); 1075ExceptionHelper.WebPermissionUnrestricted.Demand(); 1081ExceptionHelper.WebPermissionUnrestricted.Demand(); 1091ExceptionHelper.WebPermissionUnrestricted.Demand();
net\System\UriScheme.cs (1)
169ExceptionHelper.InfrastructurePermission.Demand();
security\system\security\cryptography\cryptoapi.cs (15)
3019kp.Demand(); 3422sp.Demand(); 3453sp.Demand(); 3503new FileIOPermission(FileIOPermissionAccess.Read, fullPath).Demand(); 3568new FileIOPermission(FileIOPermissionAccess.Read, fullPath).Demand(); 3633kp.Demand(); 3707sp.Demand(); 3742sp.Demand(); 3769sp.Demand(); 3804sp.Demand(); 3807sp.Demand(); 3812sp.Demand(); 3817sp.Demand(); 3878kp.Demand(); 3907sp.Demand();
security\system\security\cryptography\x509\x509certificate2.cs (1)
1171new FileIOPermission (FileIOPermissionAccess.Read, fullPath).Demand();
security\system\security\cryptography\x509\x509chain.cs (1)
188sp.Demand();
services\io\system\io\FileSystemWatcher.cs (1)
968permission.Demand();
services\io\system\io\RenamedEventArgs.cs (1)
51new FileIOPermission(FileIOPermissionAccess.Read, Path.GetPathRoot(oldFullPath)).Demand();
services\monitoring\system\diagnosticts\EventLog.cs (7)
413permission.Demand(); 600permission.Demand(); 696permission.Demand(); 804permission.Demand(); 979permission.Demand(); 1114permission.Demand(); 1126permission.Demand();
services\monitoring\system\diagnosticts\EventLogInternal.cs (26)
175permission.Demand(); 197permission.Demand(); 263permission.Demand(); 312permission.Demand(); 326permission.Demand(); 343permission.Demand(); 356permission.Demand(); 374permission.Demand(); 405permission.Demand(); 429permission.Demand(); 450permission.Demand(); 458permission.Demand(); 511permission.Demand(); 540permission.Demand(); 588permission.Demand(); 596permission.Demand(); 608permission.Demand(); 628permission.Demand(); 659permission.Demand(); 814permission.Demand(); 1245permission.Demand(); 1278permission.Demand(); 1351permission.Demand(); 1549permission.Demand(); 1628permission.Demand(); 1656permission.Demand();
services\monitoring\system\diagnosticts\FileVersionInfo.cs (2)
118new FileIOPermission(FileIOPermissionAccess.PathDiscovery, fileName).Demand(); 455new FileIOPermission(FileIOPermissionAccess.Read, fullPath).Demand();
services\monitoring\system\diagnosticts\PerformanceCounter.cs (6)
178permission.Demand(); 229permission.Demand(); 391permission.Demand(); 494permission.Demand(); 514permission.Demand(); 557permission.Demand();
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (9)
66permission.Demand(); 91permission.Demand(); 148permission.Demand(); 193permission.Demand(); 242permission.Demand(); 387permission.Demand(); 435permission.Demand(); 449permission.Demand(); 509permission.Demand();
services\monitoring\system\diagnosticts\ProcessManager.cs (1)
748new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
sys\system\configuration\ClientSettingsStore.cs (1)
497storagePerm.Demand();
sys\system\io\ports\SerialPort.cs (1)
832new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
sys\system\Media\SoundPlayer.cs (6)
125fiop.Demand(); 267perm.Demand(); 271System.Media.SoundPlayer.IntSecurity.SafeSubWindows.Demand(); 286System.Media.SoundPlayer.IntSecurity.SafeSubWindows.Demand(); 317webPerm.Demand(); 456IntSecurity.SafeSubWindows.Demand();
System.AddIn (10)
System\Addin\Hosting\AddInStore.cs (9)
86new FileIOPermission(FileIOPermissionAccess.Read, pipelineRootFolderPath).Demand(); 162new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.Write, addInsFolderPath).Demand(); 197new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.Write, addInsFolderPath).Demand(); 387new FileIOPermission(FileIOPermissionAccess.Read | FileIOPermissionAccess.Write, pipelineRootFolderPath).Demand(); 491new FileIOPermission(FileIOPermissionAccess.Read, pipelineRootFolderPath).Demand(); 596new FileIOPermission(FileIOPermissionAccess.Read, pipelineRootFolderPath).Demand(); 669new FileIOPermission(FileIOPermissionAccess.Read, fullPath).Demand(); 994permission.Demand(); 1070new SecurityPermission(SecurityPermissionFlag.SerializationFormatter).Demand();
System\Addin\Pipeline\ContractAdapter.cs (1)
76new FileIOPermission(FileIOPermissionAccess.Read, pipelineRoot).Demand();
System.Configuration (6)
System\Configuration\BaseConfigurationRecord.cs (1)
1771UnrestrictedConfigPermission.Demand();
System\Configuration\ConfigurationFileMap.cs (1)
49new FileIOPermission(FileIOPermissionAccess.PathDiscovery, filename).Demand();
System\Configuration\MgmtConfigurationRecord.cs (1)
1127new FileIOPermission(FileIOPermissionAccess.PathDiscovery, filepath).Demand();
System\Configuration\PropertySourceInfo.cs (1)
39new FileIOPermission(FileIOPermissionAccess.PathDiscovery, filename).Demand();
System\Configuration\TypeUtil.cs (2)
276s_memberAccessPermission.Demand(); 284s_aspNetHostingPermission.Demand();
System.Core (54)
System\Diagnostics\Eventing\Reader\EventLogConfiguration.cs (2)
75EventLogPermissionHolder.GetEventLogPermission().Demand(); 255EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogException.cs (1)
76EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogInformation.cs (1)
42EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (2)
41EventLogPermissionHolder.GetEventLogPermission().Demand(); 78EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogReader.cs (6)
113EventLogPermissionHolder.GetEventLogPermission().Demand(); 174EventLogPermissionHolder.GetEventLogPermission().Demand(); 203EventLogPermissionHolder.GetEventLogPermission().Demand(); 256EventLogPermissionHolder.GetEventLogPermission().Demand(); 266EventLogPermissionHolder.GetEventLogPermission().Demand(); 327EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogRecord.cs (3)
253EventLogPermissionHolder.GetEventLogPermission().Demand(); 362EventLogPermissionHolder.GetEventLogPermission().Demand(); 373EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogSession.cs (7)
74EventLogPermissionHolder.GetEventLogPermission().Demand(); 89EventLogPermissionHolder.GetEventLogPermission().Demand(); 103EventLogPermissionHolder.GetEventLogPermission().Demand(); 116EventLogPermissionHolder.GetEventLogPermission().Demand(); 164EventLogPermissionHolder.GetEventLogPermission().Demand(); 192EventLogPermissionHolder.GetEventLogPermission().Demand(); 214EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\EventLogWatcher.cs (3)
105EventLogPermissionHolder.GetEventLogPermission().Demand(); 169EventLogPermissionHolder.GetEventLogPermission().Demand(); 214EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (14)
139EventLogPermissionHolder.GetEventLogPermission().Demand(); 253EventLogPermissionHolder.GetEventLogPermission().Demand(); 284EventLogPermissionHolder.GetEventLogPermission().Demand(); 303EventLogPermissionHolder.GetEventLogPermission().Demand(); 322EventLogPermissionHolder.GetEventLogPermission().Demand(); 410EventLogPermissionHolder.GetEventLogPermission().Demand(); 467EventLogPermissionHolder.GetEventLogPermission().Demand(); 634EventLogPermissionHolder.GetEventLogPermission().Demand(); 669EventLogPermissionHolder.GetEventLogPermission().Demand(); 825EventLogPermissionHolder.GetEventLogPermission().Demand(); 923EventLogPermissionHolder.GetEventLogPermission().Demand(); 959EventLogPermissionHolder.GetEventLogPermission().Demand(); 1010EventLogPermissionHolder.GetEventLogPermission().Demand(); 1104EventLogPermissionHolder.GetEventLogPermission().Demand();
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (6)
75EventLogPermissionHolder.GetEventLogPermission().Demand(); 152EventLogPermissionHolder.GetEventLogPermission().Demand(); 169EventLogPermissionHolder.GetEventLogPermission().Demand(); 288EventLogPermissionHolder.GetEventLogPermission().Demand(); 491EventLogPermissionHolder.GetEventLogPermission().Demand(); 554EventLogPermissionHolder.GetEventLogPermission().Demand();
System\IO\__Error.cs (1)
109new FileIOPermission(FileIOPermissionAccess.PathDiscovery, new String[] { path }).Demand();
System\IO\LogStream.cs (2)
123new FileIOPermission(secAccess, new String[] { filePath }).Demand(); 146new FileIOPermission(FileIOPermissionAccess.PathDiscovery, new String[] { _fileName }).Demand();
System\Security\Cryptography\CngKey.cs (5)
432permission.Demand(); 469permission.Demand(); 593new KeyContainerPermission(KeyContainerPermissionFlags.Import).Demand(); 628permission.Demand(); 710permission.Demand();
System\Security\Cryptography\ECDsaCng.cs (1)
314permission.Demand();
System.Data (9)
fx\src\data\System\Data\Odbc\OdbcConnection.cs (1)
528(new OdbcPermission(PermissionState.Unrestricted)).Demand();
fx\src\data\System\Data\OleDb\OleDbConnection.cs (1)
630(new OleDbPermission(PermissionState.Unrestricted)).Demand();
fx\src\Data\System\Data\ProviderBase\DbConnectionHelper.cs (3)
240CONNECTIONOBJECTNAME.ExecutePermission.Demand(); 295CONNECTIONOBJECTNAME.ExecutePermission.Demand(); 382CONNECTIONOBJECTNAME.ExecutePermission.Demand();
fx\src\data\System\Data\SqlClient\SqlConnection.cs (2)
1035(new SqlClientPermission(PermissionState.Unrestricted)).Demand(); 1789new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand(); // MDAC 66682, 69017
fx\src\data\System\Data\SQLTypes\SQLFileStream.cs (2)
542filePerm.Demand(); 566filePerm.Demand();
System.Data.Entity (3)
System\Data\Common\Internal\Materialization\Translator.cs (1)
298LightweightCodeGenerator.MemberAccessReflectionPermission.Demand();
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (1)
574MemberAccessReflectionPermission.Demand();
System\Data\Metadata\MetadataCache.cs (1)
590_filePermissions.Demand();
System.Data.Linq (1)
parent\parent\misc\SecurityUtils.cs (1)
64MemberAccessPermission.Demand();
System.Drawing (58)
commonui\System\Drawing\Advanced\EncoderParameter.cs (2)
453IntSecurity.UnmanagedCode.Demand(); 497IntSecurity.UnmanagedCode.Demand();
commonui\System\Drawing\Advanced\Font.cs (4)
404IntSecurity.ObjectFromWin32Handle.Demand(); 448IntSecurity.ObjectFromWin32Handle.Demand(); 487IntSecurity.ObjectFromWin32Handle.Demand(); 824IntSecurity.ObjectFromWin32Handle.Demand();
commonui\System\Drawing\Advanced\ImageCodecInfo.cs (2)
71new System.Security.Permissions.FileIOPermission(System.Security.Permissions.FileIOPermissionAccess.PathDiscovery, dllName).Demand(); 80new System.Security.Permissions.FileIOPermission(System.Security.Permissions.FileIOPermissionAccess.PathDiscovery, value).Demand();
commonui\System\Drawing\Advanced\Metafile.cs (13)
64IntSecurity.ObjectFromWin32Handle.Demand(); 90IntSecurity.ObjectFromWin32Handle.Demand(); 168IntSecurity.ObjectFromWin32Handle.Demand(); 232IntSecurity.ObjectFromWin32Handle.Demand(); 296IntSecurity.ObjectFromWin32Handle.Demand(); 359IntSecurity.ObjectFromWin32Handle.Demand(); 436IntSecurity.ObjectFromWin32Handle.Demand(); 517IntSecurity.ObjectFromWin32Handle.Demand(); 583IntSecurity.ObjectFromWin32Handle.Demand(); 649IntSecurity.ObjectFromWin32Handle.Demand(); 717IntSecurity.ObjectFromWin32Handle.Demand(); 767IntSecurity.ObjectFromWin32Handle.Demand(); 791IntSecurity.ObjectFromWin32Handle.Demand();
commonui\System\Drawing\Advanced\PrivateFontCollection.cs (1)
123IntSecurity.ObjectFromWin32Handle.Demand();
commonui\System\Drawing\Bitmap.cs (3)
240IntSecurity.ObjectFromWin32Handle.Demand(); 354IntSecurity.ObjectFromWin32Handle.Demand(); 373IntSecurity.ObjectFromWin32Handle.Demand();
commonui\System\Drawing\Brush.cs (1)
51IntSecurity.UnmanagedCode.Demand();
commonui\System\Drawing\BufferedGraphics.cs (1)
146IntSecurity.UnmanagedCode.Demand();
commonui\System\Drawing\Design\ToolboxItem.cs (1)
937IntSecurity.UnmanagedCode.Demand();
commonui\System\Drawing\Graphics.cs (5)
133IntSecurity.ObjectFromWin32Handle.Demand(); 172IntSecurity.ObjectFromWin32Handle.Demand(); 196IntSecurity.ObjectFromWin32Handle.Demand(); 307IntSecurity.Win32HandleManipulation.Demand(); 915(new System.Security.Permissions.UIPermission(System.Security.Permissions.UIPermissionWindow.AllWindows)).Demand();
commonui\System\Drawing\Icon.cs (2)
284IntSecurity.ObjectFromWin32Handle.Demand(); 560IntSecurity.ObjectFromWin32Handle.Demand();
commonui\System\Drawing\Image.cs (3)
251IntSecurity.UnmanagedCode.Demand(); 1322IntSecurity.ObjectFromWin32Handle.Demand(); 1337IntSecurity.ObjectFromWin32Handle.Demand();
commonui\System\Drawing\IntSecurity.cs (3)
30new FileIOPermission(FileIOPermissionAccess.Read, full).Demand(); 40new FileIOPermission(FileIOPermissionAccess.Write, full).Demand(); 76permission.Demand();
commonui\System\Drawing\Printing\DefaultPrintController.cs (3)
31IntSecurity.SafePrinting.Demand(); 34IntSecurity.DefaultPrinting.Demand(); 37IntSecurity.AllPrinting.Demand();
commonui\System\Drawing\Printing\InvalidPrinterException.cs (1)
55IntSecurity.AllPrinting.Demand();
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
35IntSecurity.SafePrinting.Demand();
commonui\System\Drawing\Printing\PrintController.cs (2)
90IntSecurity.SafePrinting.Demand(); 111IntSecurity.SafePrinting.Demand();
commonui\System\Drawing\Printing\PrintDocument.cs (3)
133IntSecurity.SafePrinting.Demand(); 174IntSecurity.SafePrinting.Demand(); 333IntSecurity.AllPrinting.Demand();
commonui\System\Drawing\Printing\PrinterSettings.cs (5)
109IntSecurity.SafePrinting.Demand(); 212IntSecurity.AllPrinting.Demand(); 438IntSecurity.AllPrinting.Demand(); 480IntSecurity.AllPrinting.Demand(); 485IntSecurity.AllPrinting.Demand();
commonui\System\Drawing\Region.cs (2)
156IntSecurity.ObjectFromWin32Handle.Demand(); 344IntSecurity.ObjectFromWin32Handle.Demand();
System.Management (7)
Instrumentation\Instrumentation.cs (4)
313SecurityHelper.UnmanagedCode.Demand(); // Bug#112640 - Close off any potential use from anything but fully trusted code 374 SecurityHelper.UnmanagedCode.Demand(); // Bug#112640 - Close off any potential use from anything but fully trusted code 386 SecurityHelper.UnmanagedCode.Demand(); // Bug#112640 - Close off any potential use from anything but fully trusted code 404 SecurityHelper.UnmanagedCode.Demand(); // Bug#112640 - Close off any potential use from anything but fully trusted code
Instrumentation\ManagementInstaller.cs (1)
84 ioPermission.Demand();
Instrumentation\SchemaRegistration.cs (2)
280SecurityHelper.UnmanagedCode.Demand(); // Bug#112640 - Close off any potential use from anything but fully trusted code 327 SecurityHelper.UnmanagedCode.Demand(); // Bug#112640 - Close off any potential use from anything but fully trusted code
System.Messaging (28)
System\Messaging\MessageQueue.cs (27)
371permission.Demand(); 395permission.Demand(); 1216permission.Demand(); 1275permission.Demand(); 1336permission.Demand(); 1359permission.Demand(); 1388permission.Demand(); 1665permission.Demand(); 1739permission.Demand(); 1819permission.Demand(); 1850permission.Demand(); 1905permission.Demand(); 1989permission.Demand(); 2008permission.Demand(); 2029permission.Demand(); 2129permission.Demand(); 2377permission.Demand(); 2520permission.Demand(); 2530permission.Demand(); 2933permission.Demand(); 2946permission.Demand(); 3027permission.Demand(); 3037permission.Demand(); 3120permission.Demand(); 3253permission.Demand(); 3387permission.Demand(); 3452permission.Demand();
System\Messaging\MessageQueueEnumerator.cs (1)
144permission.Demand();
System.Net (92)
net\PeerToPeer\Cloud.cs (1)
195PnrpPermission.UnrestrictedPnrpPermission.Demand();
net\PeerToPeer\Collaboration\ContactManager.cs (20)
131PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 188PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 200PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 389PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 401PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 596PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 608PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 809PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 820PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1022PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1034PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1251PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1331PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1389PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1482PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1490PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1522PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1628PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1709PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1745PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\Peer.cs (5)
356PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 426PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 440PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 773PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 779PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\PeerApplication.cs (2)
191PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 202PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\PeerCollaboration.cs (19)
76PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 229PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 323PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 353PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 394PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 474PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 560PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 666PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 794PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 856PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 900PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 982PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 994PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1183PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1195PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1351PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1363PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1516PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1528PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\PeerContact.cs (20)
196PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 386PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 536PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 544PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 631PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 658PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 712PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 743PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 775PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 809PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 841PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 875PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1122PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1136PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1158PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1170PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1409PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1421PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1663PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 1675PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\PeerEndPoint.cs (2)
159PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 173PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\PeerNearMe.cs (10)
218PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 430PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 437PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 453PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 499PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 511PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 690PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 724PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 757PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 787PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\Collaboration\PeerObject.cs (2)
144PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand(); 155PeerCollaborationPermission.UnrestrictedPeerCollaborationPermission.Demand();
net\PeerToPeer\PeerNameRegistration.cs (4)
236PnrpPermission.UnrestrictedPnrpPermission.Demand(); 314PnrpPermission.UnrestrictedPnrpPermission.Demand(); 511PnrpPermission.UnrestrictedPnrpPermission.Demand(); 639PnrpPermission.UnrestrictedPnrpPermission.Demand();
net\PeerToPeer\PeerNameResolver.cs (7)
520PnrpPermission.UnrestrictedPnrpPermission.Demand(); 525PnrpPermission.UnrestrictedPnrpPermission.Demand(); 542PnrpPermission.UnrestrictedPnrpPermission.Demand(); 547PnrpPermission.UnrestrictedPnrpPermission.Demand(); 633PnrpPermission.UnrestrictedPnrpPermission.Demand(); 775PnrpPermission.UnrestrictedPnrpPermission.Demand(); 887PnrpPermission.UnrestrictedPnrpPermission.Demand();
System.Runtime.Caching (1)
System\Caching\HostFileChangeMonitor.cs (1)
159new FileIOPermission(FileIOPermissionAccess.PathDiscovery, path).Demand();
System.Runtime.Serialization (3)
System\Runtime\Serialization\XmlObjectSerializerContext.cs (2)
94Globals.SerializationFormatterPermission.Demand(); 106Globals.MemberAccessPermission.Demand();
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (1)
498Globals.SerializationFormatterPermission.Demand();
System.Security (17)
system\security\cryptography\cryptoapi.cs (14)
2498kp.Demand(); 2692sp.Demand(); 2728sp.Demand(); 2757sp.Demand(); 2790sp.Demand(); 2793sp.Demand(); 2798sp.Demand(); 2803sp.Demand(); 2824dp.Demand(); 2840dp.Demand(); 2852dp.Demand(); 2864dp.Demand(); 2880uiPermission.Demand(); 2896uiPermission.Demand();
system\security\cryptography\pkcs\envelopedpkcs7.cs (1)
278kp.Demand();
system\security\cryptography\pkcs\signedpkcs7.cs (1)
202kp.Demand();
system\security\cryptography\pkcs\signerinfo.cs (1)
297kp.Demand();
System.ServiceModel (3)
System\ServiceModel\Configuration\ServiceHostingEnvironmentSection.cs (1)
33new SecurityPermission(SecurityPermissionFlag.UnmanagedCode).Demand();
System\ServiceModel\Description\ConfigLoader.cs (2)
1498ConfigurationPermission.Demand(); 1527ConfigurationPermission.Demand();
System.Transactions (1)
System\Transactions\Oletx\OletxTransactionManager.cs (1)
607txPerm.Demand();
System.Web (3)
Cache\SqlCacheDependency.cs (1)
155new SqlClientPermission(PermissionState.Unrestricted).Demand();
Configuration\WebConfigurationHost.cs (1)
904new FileIOPermission(FileIOPermissionAccess.PathDiscovery, machineConfig).Demand();
parent\parent\parent\Misc\SecurityUtils.cs (1)
64MemberAccessPermission.Demand();
System.Web.DataVisualization (1)
Common\General\Chart.cs (1)
257securityPermission.Demand();
System.Web.Services (2)
System\Web\Services\Configuration\WsdlHelpGeneratorElement.cs (1)
177new FileIOPermission(FileIOPermissionAccess.Read, fullPath).Demand();
System\Web\Services\Protocols\WebServiceHandlerFactory.cs (1)
66new AspNetHostingPermission(AspNetHostingPermissionLevel.Minimal).Demand();
System.Windows.Forms (131)
misc\SecurityUtils.cs (1)
64MemberAccessPermission.Demand();
winforms\Managed\System\WinForms\AccessibleObject.cs (7)
1263IntSecurity.UnmanagedCode.Demand(); 1422IntSecurity.UnmanagedCode.Demand(); 1472IntSecurity.UnmanagedCode.Demand(); 1897IntSecurity.UnmanagedCode.Demand(); 2022IntSecurity.UnmanagedCode.Demand(); 2099IntSecurity.UnmanagedCode.Demand(); 3316IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\Application.cs (10)
341IntSecurity.AffectThreadBehavior.Demand(); 387new FileIOPermission(FileIOPermissionAccess.PathDiscovery, executablePath).Demand(); 624IntSecurity.WindowAdornmentModification.Demand(); 649new FileIOPermission(FileIOPermissionAccess.PathDiscovery, startupPath).Demand(); 862IntSecurity.UnmanagedCode.Demand(); 976IntSecurity.AffectThreadBehavior.Demand(); 1103IntSecurity.AffectThreadBehavior.Demand(); 1156IntSecurity.AffectThreadBehavior.Demand(); 1542IntSecurity.AffectMachineState.Demand(); 1576IntSecurity.AffectThreadBehavior.Demand();
winforms\Managed\System\WinForms\AxHost.cs (3)
2283IntSecurity.GetParent.Demand(); 4623IntSecurity.GetParent.Demand(); 6849IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\BindingContext.cs (3)
51IntSecurity.UnmanagedCode.Demand(); 65IntSecurity.UnmanagedCode.Demand(); 381IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\Clipboard.cs (2)
139IntSecurity.ClipboardRead.Demand(); 216IntSecurity.ClipboardRead.Demand();
winforms\Managed\System\WinForms\ComboBox.cs (1)
260fiop.Demand();
winforms\Managed\System\WinForms\CommonDialog.cs (1)
267IntSecurity.SafeSubWindows.Demand();
winforms\Managed\System\WinForms\ContainerControl.cs (2)
355IntSecurity.GetParent.Demand(); 383IntSecurity.ModifyFocus.Demand();
winforms\Managed\System\WinForms\Control.cs (21)
877IntSecurity.ClipboardRead.Demand(); 1466IntSecurity.GetCapture.Demand(); 2075IntSecurity.ModifyCursor.Demand(); 3433IntSecurity.GetParent.Demand(); 3569IntSecurity.ChangeWindowRegionForTopLevel.Demand(); 4124IntSecurity.GetParent.Demand(); 5753IntSecurity.CreateGraphicsForControl.Demand(); 6353IntSecurity.ModifyFocus.Demand(); 6400IntSecurity.ControlFromHandleOrLocation.Demand(); 6421IntSecurity.ControlFromHandleOrLocation.Demand(); 6500IntSecurity.ControlFromHandleOrLocation.Demand(); 6523IntSecurity.GetParent.Demand(); 7051IntSecurity.AllWindows.Demand(); 7797IntSecurity.UnmanagedCode.Demand(); 11090IntSecurity.SendMessages.Demand(); 11242IntSecurity.ClipboardRead.Demand(); 12044IntSecurity.UnmanagedCode.Demand(); 12076IntSecurity.TopLevelWindow.Demand(); 12080IntSecurity.UnrestrictedWindows.Demand(); 18891IntSecurity.UnmanagedCode.Demand(); 19635IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\Cursor.cs (5)
103IntSecurity.UnmanagedCode.Demand(); 172IntSecurity.AdjustCursorClip.Demand(); 214IntSecurity.ModifyCursor.Demand(); 316IntSecurity.AdjustCursorPosition.Demand(); 566IntSecurity.AdjustCursorClip.Demand();
winforms\Managed\System\WinForms\DataGridView.cs (1)
3709IntSecurity.AllWindows.Demand();
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
20639IntSecurity.AllWindows.Demand();
winforms\Managed\System\WinForms\DataObject.cs (2)
1857new FileIOPermission(FileIOPermissionAccess.PathDiscovery, fullPath).Demand(); 2000IntSecurity.ClipboardRead.Demand();
winforms\Managed\System\WinForms\FileDialog.cs (9)
105IntSecurity.FileDialogCustomization.Demand(); 127IntSecurity.FileDialogCustomization.Demand(); 151IntSecurity.FileDialogCustomization.Demand(); 203IntSecurity.FileDialogCustomization.Demand(); 259IntSecurity.FileDialogCustomization.Demand(); 433IntSecurity.FileDialogCustomization.Demand(); 491IntSecurity.FileDialogCustomization.Demand(); 561IntSecurity.FileDialogCustomization.Demand(); 585IntSecurity.FileDialogCustomization.Demand();
winforms\Managed\System\WinForms\FileDialogCustomPlacesCollection.cs (1)
26permission.Demand();
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
135new FileIOPermission(FileIOPermissionAccess.PathDiscovery, selectedPath).Demand();
winforms\Managed\System\WinForms\Form.cs (8)
433IntSecurity.GetParent.Demand(); 1462IntSecurity.WindowAdornmentModification.Demand(); 1883IntSecurity.GetParent.Demand(); 2158IntSecurity.GetParent.Demand(); 2612IntSecurity.TransparentWindows.Demand(); 3084IntSecurity.ModifyFocus.Demand(); 3106IntSecurity.ModifyFocus.Demand(); 5746IntSecurity.ModifyFocus.Demand();
winforms\Managed\System\WinForms\Help.cs (3)
194IntSecurity.UnmanagedCode.Demand(); 291new WebPermission(NetworkAccess.Connect, url).Demand(); 295IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\InputLanguage.cs (1)
70IntSecurity.AffectThreadBehavior.Demand();
winforms\Managed\System\WinForms\Menu.cs (1)
328IntSecurity.ControlFromHandleOrLocation.Demand();
winforms\Managed\System\WinForms\Message.cs (1)
150IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\MessageBox.cs (2)
447IntSecurity.UnmanagedCode.Demand(); 450IntSecurity.SafeSubWindows.Demand();
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
192IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\NativeWindow.cs (2)
712IntSecurity.CreateAnyWindow.Demand(); 718IntSecurity.TopLevelWindow.Demand();
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
691IntSecurity.UnrestrictedWindows.Demand(); 766IntSecurity.UnrestrictedWindows.Demand();
winforms\Managed\System\WinForms\OpenFileDialog.cs (3)
145IntSecurity.FileDialogOpenFile.Demand(); 185IntSecurity.FileDialogOpenFile.Demand(); 197IntSecurity.FileDialogOpenFile.Demand();
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (1)
353IntSecurity.SafePrinting.Demand();
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
354IntSecurity.SafePrinting.Demand();
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
454IntSecurity.SafePrinting.Demand();
winforms\Managed\System\WinForms\RichTextBox.cs (5)
171IntSecurity.ClipboardRead.Demand(); 489IntSecurity.ClipboardRead.Demand(); 2703IntSecurity.ClipboardRead.Demand(); 3258IntSecurity.UnmanagedCode.Demand(); 3820IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\SaveFileDialog.cs (5)
54IntSecurity.FileDialogCustomization.Demand(); 77IntSecurity.FileDialogCustomization.Demand(); 98IntSecurity.FileDialogSaveFile.Demand(); 191IntSecurity.FileDialogSaveFile.Demand(); 201IntSecurity.FileDialogSaveFile.Demand();
winforms\Managed\System\WinForms\Screen.cs (1)
358IntSecurity.ObjectFromWin32Handle.Demand();
winforms\Managed\System\WinForms\SendKeys.cs (1)
872IntSecurity.UnmanagedCode.Demand();
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1988IntSecurity.ModifyFocus.Demand();
winforms\Managed\System\WinForms\SystemInformation.cs (5)
538IntSecurity.SensitiveSystemInformation.Demand(); 713IntSecurity.SensitiveSystemInformation.Demand(); 902IntSecurity.SensitiveSystemInformation.Demand(); 1097IntSecurity.SensitiveSystemInformation.Demand(); 1160IntSecurity.SensitiveSystemInformation.Demand();
winforms\Managed\System\WinForms\TextBox.cs (1)
203fiop.Demand();
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
1589IntSecurity.ClipboardRead.Demand();
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
609IntSecurity.WindowAdornmentModification.Demand();
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
245IntSecurity.ClipboardRead.Demand();
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
998IntSecurity.ClipboardRead.Demand();
winforms\Managed\System\WinForms\ToolStripItemCollection.cs (1)
250IntSecurity.AllWindows.Demand();
winforms\Managed\System\WinForms\ToolTip.cs (1)
311IntSecurity.AllWindows.Demand();
winforms\Managed\System\WinForms\TreeNode.cs (1)
1135IntSecurity.ControlFromHandleOrLocation.Demand();
winforms\Managed\System\WinForms\WebBrowser.cs (6)
857IntSecurity.DefaultPrinting.Demand(); 959IntSecurity.SafePrinting.Demand(); 980IntSecurity.SafePrinting.Demand(); 1001IntSecurity.SafePrinting.Demand(); 1043IntSecurity.FileDialogSaveFile.Demand(); 1528permission.Demand();
winforms\Managed\System\WinForms\WinFormsSecurity.cs (1)
506new FileIOPermission(access, UnsafeGetFullPath(fileName)).Demand();
System.Windows.Forms.DataVisualization (1)
Common\General\Chart.cs (1)
257securityPermission.Demand();
System.Workflow.Activities (3)
Rules\Design\LogicalExpressionTypeConverter.cs (3)
225MyPermission.Demand(); 330MyPermission.Demand(); 433MyPermission.Demand();
System.Xml (2)
System\Xml\Xslt\XslCompiledTransform.cs (1)
319new ReflectionPermission(ReflectionPermissionFlag.MemberAccess).Demand();
System\Xml\Xslt\XslTransform.cs (1)
123new SecurityPermission(SecurityPermissionFlag.ControlEvidence).Demand();
WindowsBase (6)
Shared\MS\Internal\SecurityHelper.cs (6)
115_unmanagedCodePermission.Demand(); 847_rightsManagementPermission.Demand(); 861_compoundFileIOPermission.Demand(); 873permobj.Demand(); 999_allWindowsUIPermission.Demand(); 1080_unrestrictedUIPermission.Demand();