System.Security.Policy.CodeGroup.Equals Method

Determines whether the specified code group is equivalent to the current code group.

Syntax

public override bool Equals (object o)

Parameters

o
The code group to compare with the current code group.

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.

This method tests the top-level code group only, not 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