mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Security.Policy.CodeGroup System.Runtime.InteropServices.ComVisible(true)

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.

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.

code groups are the code groups created by the CASPOL utility (see [<topic://cpgrfcodeaccesssecuritypolicyutilitycaspolexe>]).

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.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0

  This constructor creates a basic code group and should be called from the constructors of custom code groups. You can add child code groups by using the method.

  Initializes a new instance of the class.

  A membership condition that tests evidence to determine whether this code group applies policy.
  The policy statement for the code group in the form of a permission set and attributes to grant code that matches the membership condition.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Security.Policy.CodeGroup

  This method makes a deep copy of the code group, so that copies of all objects the code group contains are also made.

  Makes a deep copy of the current code group.

  An equivalent copy of the current code group, including its membership conditions and child code groups.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added. To be added.

  Gets the merge logic.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Security.Policy.PolicyStatement ``

  Given evidence for an assembly to be loaded, this method evaluates the code group by first checking the membership condition against the specified evidence. If there is a match, this method returns a policy statement for the code group, including evaluation of child code groups.

  For union code groups, all child code groups whose membership condition match the evidence are also resolved, and all resulting policy statements form a union with the policy statement of the parent union code group. Each child code group type determines how its child groups are applied, depending on how their respective methods work.

  The .NET Framework security system uses on the policy levels to determine which permissions to grant to loaded code from the resulting policy statements and the code request on the assembly.

  If the membership condition does not match the specified evidence, this method returns null; otherwise, it sets the permission set to be returned (P) equal to the code group's policy statement, and then continues. For each child code group, the method resolves the code group with the same evidence; if the result is not null, it sets P equal to the union of P and the child code group's policy statement. It then returns P, which is now the union of the current code group's policy statement and all child group policy statements.

  Resolves policy for the code group and its descendants for a set of evidence.

  A policy statement consisting of the permissions granted by the code group with optional attributes, or null if the code group does not apply (the membership condition does not match the specified evidence).

  The evidence for the assembly.
- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Security.Policy.CodeGroup ``

  Given evidence for an assembly to be loaded, this method evaluates the code group by first checking the membership condition against the specified evidence. If there is a match, this method returns a root code group. The code group that is returned may contain child code groups, which, in turn, may also contain child code groups, so the return value reflects the complete set of code groups that were matched by the evidence provided.

  Resolves matching code groups.

  The complete set of code groups that were matched by the evidence.

  The evidence for the assembly.