Export (0) Print
Expand All

CodeGroup Class

Represents the abstract base class from which all implementations of code groups must derive.

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

System.Object
   System.Security.Policy.CodeGroup
      System.Security.Policy.FileCodeGroup
      System.Security.Policy.FirstMatchCodeGroup
      System.Security.Policy.NetCodeGroup
      System.Security.Policy.UnionCodeGroup

[Visual Basic]
<Serializable>
MustInherit Public Class CodeGroup
[C#]
[Serializable]
public abstract class CodeGroup
[C++]
[Serializable]
public __gc __abstract class CodeGroup
[JScript]
public
   Serializable
abstract class 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. Each child code group can have their own child code groups; this behavior extends to any number of levels, forming a tree. Each code group has a membership condition that determines if a given assembly belongs to it based on the evidence for that assembly.

Only those code groups whose membership conditions match a given assembly's evidence will be applied. If a matching code group has child code groups, then those children whose membership conditions also match the supplied evidence will likewise be applied.

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

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

Show:
© 2014 Microsoft