119 references to SecurityZone
mscorlib (86)
system\appdomain.cs (3)
3376
SecurityZone
creatorsSecurityZone = creatorsZone != null ?
3378
SecurityZone
.MyComputer;
3384
suppliedZone.SecurityZone !=
SecurityZone
.MyComputer)
system\reflection\assembly.cs (2)
37
using SecurityZone = System.Security.
SecurityZone
;
558
if (zone == null || zone.SecurityZone !=
SecurityZone
.MyComputer)
system\security\permissions\permissionattributes.cs (3)
752
private
SecurityZone
m_flag =
SecurityZone
.NoZone;
761
public
SecurityZone
Zone {
system\security\permissions\zoneidentitypermission.cs (24)
52
private
SecurityZone
m_zone =
SecurityZone
.NoZone;
68
m_zone =
SecurityZone
.NoZone;
92
m_zone =
SecurityZone
.NoZone;
119
public ZoneIdentityPermission(
SecurityZone
zone )
138
zoneList.Add((
SecurityZone
)nEnum);
150
public
SecurityZone
SecurityZone
155
if(value ==
SecurityZone
.NoZone)
163
SecurityZone
z =
SecurityZone
.NoZone;
170
if(z ==
SecurityZone
.NoZone)
171
z = (
SecurityZone
)nEnum;
173
return
SecurityZone
.NoZone;
187
private static void VerifyZone(
SecurityZone
zone )
189
if (zone <
SecurityZone
.NoZone || zone >
SecurityZone
.Untrusted)
255
if (SecurityZone !=
SecurityZone
.NoZone)
257
esd.AddAttribute( "Zone", Enum.GetName( typeof(
SecurityZone
), this.SecurityZone ) );
268
child.AddAttribute( "Zone", Enum.GetName( typeof(
SecurityZone
), (
SecurityZone
)nEnum ) );
283
SecurityZone = (
SecurityZone
)Enum.Parse( typeof(
SecurityZone
), eZone );
289
int enm = (int)Enum.Parse( typeof(
SecurityZone
), eZone );
290
if(enm == (int)
SecurityZone
.NoZone)
system\security\policy\pefileevidencefactory.cs (4)
200
[Out] out
SecurityZone
zone,
242
SecurityZone
securityZone =
SecurityZone
.NoZone;
246
if (securityZone !=
SecurityZone
.NoZone)
system\security\policy\policylevel.cs (5)
986
myComputerCodeGroup.FromXml(CreateCodeGroupElement("UnionCodeGroup", "FullTrust", new ZoneMembershipCondition(
SecurityZone
.MyComputer).ToXml()), this);
1011
intranet.FromXml(CreateCodeGroupElement("UnionCodeGroup", "LocalIntranet", new ZoneMembershipCondition(
SecurityZone
.Intranet).ToXml()), this);
1028
internet.FromXml(CreateCodeGroupElement("UnionCodeGroup", "Internet", new ZoneMembershipCondition(
SecurityZone
.Internet).ToXml()), this);
1040
untrusted.FromXml(CreateCodeGroupElement("UnionCodeGroup", "Nothing", new ZoneMembershipCondition(
SecurityZone
.Untrusted).ToXml()), this);
1046
trusted.FromXml(CreateCodeGroupElement("UnionCodeGroup", "Internet", new ZoneMembershipCondition(
SecurityZone
.Trusted).ToXml()), this);
system\security\policy\zone.cs (8)
32
private
SecurityZone
m_zone;
37
public Zone(
SecurityZone
zone)
39
if (zone <
SecurityZone
.NoZone || zone >
SecurityZone
.Untrusted)
60
m_zone =
SecurityZone
.NoZone;
76
private extern static
SecurityZone
_CreateFromUrl( String url );
84
public
SecurityZone
SecurityZone
133
if (SecurityZone !=
SecurityZone
.NoZone)
system\security\policy\zonemembershipcondition.cs (21)
42
private
SecurityZone
m_zone;
53
m_zone =
SecurityZone
.NoZone;
56
public ZoneMembershipCondition(
SecurityZone
zone )
70
public
SecurityZone
SecurityZone
81
if (m_zone ==
SecurityZone
.NoZone && m_element != null)
94
private static void VerifyZone(
SecurityZone
zone )
96
if (zone <
SecurityZone
.MyComputer || zone >
SecurityZone
.Untrusted)
125
if (m_zone ==
SecurityZone
.NoZone && m_element != null)
142
if (m_zone ==
SecurityZone
.NoZone && m_element != null)
160
if (m_zone ==
SecurityZone
.NoZone && m_element != null)
171
if (m_zone !=
SecurityZone
.NoZone)
172
root.AddAttribute( "Zone", Enum.GetName( typeof(
SecurityZone
), m_zone ) );
190
m_zone =
SecurityZone
.NoZone;
204
m_zone =
SecurityZone
.NoZone;
207
m_zone = (
SecurityZone
)Enum.Parse( typeof(
SecurityZone
), eZone );
225
if (this.m_zone ==
SecurityZone
.NoZone && this.m_element != null)
227
if (that.m_zone ==
SecurityZone
.NoZone && that.m_element != null)
240
if (this.m_zone ==
SecurityZone
.NoZone && this.m_element != null)
248
if (m_zone ==
SecurityZone
.NoZone && m_element != null)
system\security\policymanager.cs (3)
444
foreach (
SecurityZone
zone in Enum.GetValues(typeof(
SecurityZone
)))
446
if (zone ==
SecurityZone
.NoZone)
system\security\securityexception.cs (9)
51
private
SecurityZone
m_zone;
248
m_zone = (
SecurityZone
)info.GetValue(ZoneName, typeof(
SecurityZone
));
263
m_zone =
SecurityZone
.NoZone;
289
m_zone =
SecurityZone
.NoZone;
322
m_zone =
SecurityZone
.NoZone;
523
public
SecurityZone
Zone
588
if(m_zone !=
SecurityZone
.NoZone)
655
info.AddValue(ZoneName, m_zone, typeof(
SecurityZone
));
system\security\securitymanager.cs (4)
104
else if (zone.SecurityZone ==
SecurityZone
.MyComputer)
108
else if (zone.SecurityZone ==
SecurityZone
.Intranet)
129
else if (zone.SecurityZone ==
SecurityZone
.Internet ||
130
zone.SecurityZone ==
SecurityZone
.Trusted)
PresentationCore (14)
Core\CSharp\MS\Internal\AppModel\CustomCredentialPolicy.cs (12)
123
case
SecurityZone
.Intranet:
124
case
SecurityZone
.Trusted:
125
case
SecurityZone
.MyComputer:
128
case
SecurityZone
.Internet:
129
case
SecurityZone
.Untrusted:
162
internal static
SecurityZone
MapUrlToZone(Uri uri)
173
return
SecurityZone
.MyComputer;
175
return
SecurityZone
.Internet;
177
return
SecurityZone
.Intranet;
179
return
SecurityZone
.Trusted;
181
return
SecurityZone
.Untrusted;
184
return
SecurityZone
.NoZone;
Shared\MS\Utility\BindUriHelper.cs (2)
166
SecurityZone
sourceZone = MS.Internal.AppModel.CustomCredentialPolicy.MapUrlToZone(sourceUri);
167
SecurityZone
targetZone = MS.Internal.AppModel.CustomCredentialPolicy.MapUrlToZone(destinationUri);
PresentationFramework (4)
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (2)
83
context.NoPrompt = !(hostEvidence.SecurityZone ==
SecurityZone
.Intranet || hostEvidence.SecurityZone ==
SecurityZone
.Trusted);
src\Shared\MS\Utility\BindUriHelper.cs (2)
166
SecurityZone
sourceZone = MS.Internal.AppModel.CustomCredentialPolicy.MapUrlToZone(sourceUri);
167
SecurityZone
targetZone = MS.Internal.AppModel.CustomCredentialPolicy.MapUrlToZone(destinationUri);
System (3)
net\System\URI.cs (3)
296
if(zone == (int)
SecurityZone
.Intranet)
301
if ((zone == (int)
SecurityZone
.Trusted) ||
302
(zone == (int)
SecurityZone
.Untrusted) || error)
System.AddIn (3)
System\Addin\Hosting\AddInActivator.cs (3)
87
sandboxEvidence.AddHostEvidence(new Zone(
SecurityZone
.Internet));
91
sandboxEvidence.AddHostEvidence(new Zone(
SecurityZone
.Intranet));
95
sandboxEvidence.AddHostEvidence(new Zone(
SecurityZone
.MyComputer));
System.Web (1)
Hosting\ApplicationManager.cs (1)
1696
evidence.AddHostEvidence(new Zone(
SecurityZone
.MyComputer));
System.Windows.Forms (8)
winforms\Managed\System\WinForms\Form.cs (2)
4220
if (currentZone.SecurityZone.Equals(
SecurityZone
.MyComputer))
4240
securityZone =
SecurityZone
.MyComputer.ToString();
winforms\Managed\System\WinForms\TrustManager.cs (6)
754
if (zone == null || zone.SecurityZone ==
SecurityZone
.NoZone)
760
case
SecurityZone
.Internet:
762
case
SecurityZone
.Intranet:
764
case
SecurityZone
.MyComputer:
766
case
SecurityZone
.Trusted:
768
case
SecurityZone
.Untrusted: