Code groups are the building blocks of code access security policy. Each policy level consists of a root code group that may have child code groups and so on forming a tree. Each code group has a membership condition that determines if a given assembly belongs to it or not based on the evidence for that assembly. Only code groups whose membership conditions match a given assembly and their children apply policy.
UnionCodeGroup is the most common type of code group, the policy statement of all matching child code groups (and by extension their children) are unioned together with the permission set of the matching parent code group. Thus, if its membership condition matches this code group will union its policy statement with those of all its children that also match the evidence.
Object
UnionCodeGroup
[Visual Basic] NotInheritable Public Class UnionCodeGroup Implements ICodeGroup, ISecurityEncodable, _ ISecurityPolicyEncodable [C#] public sealed class UnionCodeGroup : ICodeGroup, ISecurityEncodable, ISecurityPolicyEncodable [C++] public __gc __sealed class UnionCodeGroup : public ICodeGroup, ISecurityEncodable, ISecurityPolicyEncodable [JScript] public class UnionCodeGroup implements ICodeGroup, ISecurityEncodable, ISecurityPolicyEncodable
UnionCodeGroup code groups are the code groups created by the CASPOL utility.
Namespace: System.Security.Policy
Assembly: mscorlib.dll