System.Security.Policy.CodeGroup.Equals Method

Determines whether the specified code group is equivalent to the current code group, checking the child code groups as well, if specified.

Syntax

public bool Equals (CodeGroup cg, bool compareChildren)

Parameters

cg
The code group to compare with the current code group.
compareChildren
true to compare child code groups, as well; otherwise, false.

Returns

true if the specified code group is equivalent to the current code group; otherwise, false.

Remarks

Two code groups are equivalent if they have the same CodeGroup.Name, CodeGroup.Description, and CodeGroup.MembershipCondition.

If the compareChildren parameter is true, this method will only return true if the current code group and all its child code groups are equivalent to the specified code group and all its child code groups.

Requirements

Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0