4 types derived from CodeGroup
mscorlib (4)
system\security\policy\filecodegroup.cs (1)
27
sealed public class FileCodeGroup :
CodeGroup
, IUnionSemanticCodeGroup {
system\security\policy\firstmatchcodegroup.cs (1)
24
sealed public class FirstMatchCodeGroup :
CodeGroup
system\security\policy\netcodegroup.cs (1)
213
sealed public class NetCodeGroup :
CodeGroup
, IUnionSemanticCodeGroup
system\security\policy\unioncodegroup.cs (1)
24
sealed public class UnionCodeGroup :
CodeGroup
, IUnionSemanticCodeGroup
87 references to CodeGroup
mscorlib (74)
system\security\permissionset.cs (4)
2352
CodeGroup
rootGroup = new UnionCodeGroup( new AllMembershipCondition(), level.GetNamedPermissionSet( "Execution" ) );
2355
CodeGroup
microsoftGroup = new UnionCodeGroup( new StrongNameMembershipCondition( microsoftBlob, null, null ), level.GetNamedPermissionSet( "FullTrust" ) );
2358
CodeGroup
ecmaGroup = new UnionCodeGroup( new StrongNameMembershipCondition( ecmaBlob, null, null ), level.GetNamedPermissionSet( "FullTrust" ) );
2360
CodeGroup
gacGroup = new UnionCodeGroup( new GacMembershipCondition(), level.GetNamedPermissionSet( "FullTrust" ) );
system\security\policy\codegroup.cs (16)
74
public void AddChild(
CodeGroup
group )
90
internal void AddChildInternal(
CodeGroup
group )
106
public void RemoveChild(
CodeGroup
group )
141
newList.Add( ((
CodeGroup
)enumerator.Current).Copy() );
160
CodeGroup
group = enumerator.Current as
CodeGroup
;
252
public abstract
CodeGroup
ResolveMatchingCodeGroups( Evidence evidence );
254
public abstract
CodeGroup
Copy();
373
e.AddChild( ((
CodeGroup
)enumerator.Current).ToXml( level ) );
502
CodeGroup
group = System.Security.Util.XMLUtil.CreateCodeGroup( elGroup );
589
CodeGroup
group = System.Security.Util.XMLUtil.CreateCodeGroup( marker.element );
715
CodeGroup
that = (o as
CodeGroup
);
737
public bool Equals(
CodeGroup
cg, bool compareChildren)
755
if (!((
CodeGroup
) list1[i]).Equals( (
CodeGroup
) list2[i], true ))
system\security\policy\filecodegroup.cs (7)
61
PolicyStatement childPolicy = PolicyManager.ResolveCodeGroup(enumerator.Current as
CodeGroup
,
95
public override
CodeGroup
ResolveMatchingCodeGroups(Evidence evidence) {
101
CodeGroup
retGroup = this.Copy();
105
CodeGroup
matchingGroups = ((
CodeGroup
)enumerator.Current).ResolveMatchingCodeGroups(evidence);
148
public override
CodeGroup
Copy() {
155
group.AddChild((
CodeGroup
)enumerator.Current);
system\security\policy\firstmatchcodegroup.cs (7)
55
childPolicy = PolicyManager.ResolveCodeGroup(enumerator.Current as
CodeGroup
,
115
public override
CodeGroup
ResolveMatchingCodeGroups( Evidence evidence )
123
CodeGroup
retGroup = this.Copy();
131
CodeGroup
matchingGroups = ((
CodeGroup
)enumerator.Current).ResolveMatchingCodeGroups( evidence );
151
public override
CodeGroup
Copy()
164
group.AddChild( (
CodeGroup
)enumerator.Current );
system\security\policy\netcodegroup.cs (7)
387
PolicyStatement childPolicy = PolicyManager.ResolveCodeGroup(enumerator.Current as
CodeGroup
,
424
public override
CodeGroup
ResolveMatchingCodeGroups( Evidence evidence )
432
CodeGroup
retGroup = this.Copy();
440
CodeGroup
matchingGroups = ((
CodeGroup
)enumerator.Current).ResolveMatchingCodeGroups( evidence );
721
public override
CodeGroup
Copy()
739
group.AddChild( (
CodeGroup
)enumerator.Current );
system\security\policy\policylevel.cs (18)
49
private
CodeGroup
m_rootCodeGroup;
220
public
CodeGroup
RootCodeGroup {
254
public
CodeGroup
ResolveMatchingCodeGroups(Evidence evidence) {
406
CodeGroup
group = (
CodeGroup
)groups[index];
640
CodeGroup
rootCodeGroup = System.Security.Util.XMLUtil.CreateCodeGroup(UnnormalizeClassDeep(elCodeGroup, classes));
970
private
CodeGroup
CreateDefaultAllGroup() {
979
private
CodeGroup
CreateDefaultMachinePolicy() {
1010
CodeGroup
intranet = new UnionCodeGroup();
1015
CodeGroup
intranetNetCode = new NetCodeGroup(new AllMembershipCondition());
1020
CodeGroup
intranetFileCode = new FileCodeGroup(new AllMembershipCondition(), FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery);
1027
CodeGroup
internet = new UnionCodeGroup();
1032
CodeGroup
internetNet = new NetCodeGroup(new AllMembershipCondition());
1039
CodeGroup
untrusted = new UnionCodeGroup();
1045
CodeGroup
trusted = new UnionCodeGroup();
1049
CodeGroup
trustedNet = new NetCodeGroup(new AllMembershipCondition());
1231
CodeGroup
rootCodeGroupRef = m_rootCodeGroup;
1399
internal
CodeGroup
current;
system\security\policy\unioncodegroup.cs (7)
67
PolicyStatement childPolicy = PolicyManager.ResolveCodeGroup(enumerator.Current as
CodeGroup
,
106
public override
CodeGroup
ResolveMatchingCodeGroups( Evidence evidence )
114
CodeGroup
retGroup = this.Copy();
122
CodeGroup
matchingGroups = ((
CodeGroup
)enumerator.Current).ResolveMatchingCodeGroups( evidence );
142
public override
CodeGroup
Copy()
155
group.AddChild( (
CodeGroup
)enumerator.Current );
system\security\policymanager.cs (4)
204
CodeGroup
temp = ((PolicyLevel)levelEnumerator.Current).ResolveMatchingCodeGroups(evidence);
213
internal static PolicyStatement ResolveCodeGroup(
CodeGroup
codeGroup, Evidence evidence)
363
internal static bool CanUseQuickCache (
CodeGroup
group) {
370
group = (
CodeGroup
)list[i];
system\security\util\xmlutil.cs (4)
430
public static
CodeGroup
485
CodeGroup
group = null;
491
if (!(typeof(
CodeGroup
).IsAssignableFrom(groupClass)))
494
group = (
CodeGroup
) Activator.CreateInstance(groupClass, true);
PresentationFramework (3)
src\Framework\MS\Internal\AppModel\PresentationAppDomainManager.cs (3)
184
CodeGroup
group = (srcUri.IsFile) ?
185
(
CodeGroup
)new FileCodeGroup(membership, FileIOPermissionAccess.Read | FileIOPermissionAccess.PathDiscovery)
186
:(
CodeGroup
)new NetCodeGroup(membership);
System.Web (10)
Hosting\ApplicationManager.cs (5)
1485
CodeGroup
rootGroup = policyLevel.RootCodeGroup;
1487
foreach (
CodeGroup
childGroup in rootGroup.Children) {
1506
CodeGroup
gacGroup = new UnionCodeGroup(new GacMembershipCondition(),
1510
CodeGroup
newRoot = new FirstMatchCodeGroup(rootGroup.MembershipCondition, rootGroup.PolicyStatement);
1511
foreach (
CodeGroup
childGroup in rootGroup.Children) {
HttpRuntime.cs (5)
3169
CodeGroup
rootGroup = policyLevel.RootCodeGroup;
3171
foreach (
CodeGroup
childGroup in rootGroup.Children) {
3193
CodeGroup
gacGroup = new UnionCodeGroup(new GacMembershipCondition(),
3201
CodeGroup
newRoot = new FirstMatchCodeGroup(rootGroup.MembershipCondition, rootGroup.PolicyStatement);
3202
foreach (
CodeGroup
childGroup in rootGroup.Children) {