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