This documentation is archived and is not being maintained.

UnionCodeGroup Class

Represents a code group whose policy statement is the union of the current code group's policy statement and the policy statement of all its matching child code groups. This class cannot be inherited.

For a list of all members of this type, see UnionCodeGroup Members.

System.Object
   System.Security.Policy.CodeGroup
      System.Security.Policy.UnionCodeGroup

[Visual Basic]
<Serializable>
NotInheritable Public Class UnionCodeGroup
   Inherits CodeGroup
[C#]
[Serializable]
public sealed class UnionCodeGroup : CodeGroup
[C++]
[Serializable]
public __gc __sealed class UnionCodeGroup : public CodeGroup
[JScript]
public
   Serializable
class UnionCodeGroup extends CodeGroup

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Code groups are the building blocks of code access security policy. Each policy level consists of a root code group that can 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 child code groups apply policy.

UnionCodeGroup is the most common type of code group; the policy statement of all matching child code groups (and by extension their child code groups) are combined with the permission set of the matching parent code group. Thus, if its membership condition matches, this code group forms the union of its policy statement and those of all its child code groups that also match the evidence.

UnionCodeGroup code groups are the code groups created by the CASPOL utility (see Code Access Security Policy Tool (Caspol.exe)) and the .NET Framework Configuration tool (see .NET Framework Configuration Tool (Mscorcfg.msc)).

Requirements

Namespace: System.Security.Policy

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

UnionCodeGroup Members | System.Security.Policy Namespace | Code Groups

Show: