78 references to HostProtectionResource
mscorlib (78)
system\security\hostprotectionexception.cs (20)
31
private
HostProtectionResource
m_protected;
32
private
HostProtectionResource
m_demanded;
39
m_protected =
HostProtectionResource
.None;
40
m_demanded =
HostProtectionResource
.None;
45
m_protected =
HostProtectionResource
.None;
46
m_demanded =
HostProtectionResource
.None;
51
m_protected =
HostProtectionResource
.None;
52
m_demanded =
HostProtectionResource
.None;
61
m_protected = (
HostProtectionResource
)info.GetValue(ProtectedResourcesName, typeof(
HostProtectionResource
));
62
m_demanded = (
HostProtectionResource
)info.GetValue(DemandedResourcesName, typeof(
HostProtectionResource
));
65
public HostProtectionException(string message,
HostProtectionResource
protectedResources,
HostProtectionResource
demandedResources)
74
private HostProtectionException(
HostProtectionResource
protectedResources,
HostProtectionResource
demandedResources)
83
public
HostProtectionResource
ProtectedResources
91
public
HostProtectionResource
DemandedResources
134
info.AddValue(ProtectedResourcesName, ProtectedResources, typeof(
HostProtectionResource
));
135
info.AddValue(DemandedResourcesName, DemandedResources, typeof(
HostProtectionResource
));
system\security\permissions\hostprotectionpermission.cs (51)
59
private
HostProtectionResource
m_resources =
HostProtectionResource
.None;
80
public
HostProtectionResource
Resources {
86
get { return (m_resources &
HostProtectionResource
.Synchronization) != 0; }
87
set { m_resources = (value ? m_resources |
HostProtectionResource
.Synchronization : m_resources & ~
HostProtectionResource
.Synchronization); }
91
get { return (m_resources &
HostProtectionResource
.SharedState) != 0; }
92
set { m_resources = (value ? m_resources |
HostProtectionResource
.SharedState : m_resources & ~
HostProtectionResource
.SharedState); }
96
get { return (m_resources &
HostProtectionResource
.ExternalProcessMgmt) != 0; }
97
set { m_resources = (value ? m_resources |
HostProtectionResource
.ExternalProcessMgmt : m_resources & ~
HostProtectionResource
.ExternalProcessMgmt); }
101
get { return (m_resources &
HostProtectionResource
.SelfAffectingProcessMgmt) != 0; }
102
set { m_resources = (value ? m_resources |
HostProtectionResource
.SelfAffectingProcessMgmt : m_resources & ~
HostProtectionResource
.SelfAffectingProcessMgmt); }
106
get { return (m_resources &
HostProtectionResource
.ExternalThreading) != 0; }
107
set { m_resources = (value ? m_resources |
HostProtectionResource
.ExternalThreading : m_resources & ~
HostProtectionResource
.ExternalThreading); }
111
get { return (m_resources &
HostProtectionResource
.SelfAffectingThreading) != 0; }
112
set { m_resources = (value ? m_resources |
HostProtectionResource
.SelfAffectingThreading : m_resources & ~
HostProtectionResource
.SelfAffectingThreading); }
117
get { return (m_resources &
HostProtectionResource
.SecurityInfrastructure) != 0; }
118
set { m_resources = (value ? m_resources |
HostProtectionResource
.SecurityInfrastructure : m_resources & ~
HostProtectionResource
.SecurityInfrastructure); }
122
get { return (m_resources &
HostProtectionResource
.UI) != 0; }
123
set { m_resources = (value ? m_resources |
HostProtectionResource
.UI : m_resources & ~
HostProtectionResource
.UI); }
127
get { return (m_resources &
HostProtectionResource
.MayLeakOnAbort) != 0; }
128
set { m_resources = (value ? m_resources |
HostProtectionResource
.MayLeakOnAbort : m_resources & ~
HostProtectionResource
.MayLeakOnAbort); }
155
internal static volatile
HostProtectionResource
protectedResources =
HostProtectionResource
.None;
162
private
HostProtectionResource
m_resources;
172
Resources =
HostProtectionResource
.All;
174
Resources =
HostProtectionResource
.None;
179
public HostProtectionPermission(
HostProtectionResource
resources)
191
return Resources ==
HostProtectionResource
.All;
199
public
HostProtectionResource
Resources
203
if(value <
HostProtectionResource
.None || value >
HostProtectionResource
.All)
223
return m_resources ==
HostProtectionResource
.None;
235
HostProtectionResource
newResources = (
HostProtectionResource
)((uint)this.m_resources | (uint)((HostProtectionPermission)target).m_resources);
245
HostProtectionResource
newResources = (
HostProtectionResource
)((uint)this.m_resources & (uint)((HostProtectionPermission)target).m_resources);
246
if(newResources ==
HostProtectionResource
.None)
268
esd.AddAttribute( "Resources", XMLUtil.BitFieldEnumToString( typeof(
HostProtectionResource
), Resources ) );
276
Resources =
HostProtectionResource
.All;
281
Resources =
HostProtectionResource
.None;
283
Resources = (
HostProtectionResource
)Enum.Parse( typeof(
HostProtectionResource
), resources );
system\security\permissionset.cs (7)
1667
private bool DecodeXml(byte[] data,
HostProtectionResource
fullTrustOnlyResources,
HostProtectionResource
inaccessibleResources )
1707
internal void FilterHostProtectionPermissions(
HostProtectionResource
fullTrustOnly,
HostProtectionResource
inaccessible)
2418
HostProtectionResource
fullTrustOnlyResources,
2471
casPset.FilterHostProtectionPermissions(fullTrustOnlyResources,
HostProtectionResource
.None);
2478
nonCasPset.FilterHostProtectionPermissions(fullTrustOnlyResources,
HostProtectionResource
.None);