System.Security.SecurityElement.Equal Method

Compares two XML element objects for equality.

Syntax

public bool Equal (SecurityElement other)

Parameters

other
An XML element object to which to compare the current XML element object.

Returns

true if the tag, attribute names and values, child elements, and text fields in the current XML element are identical to their counterparts in the other parameter; otherwise, false.

Remarks

If there are child elements, comparison extends recursively to them.

There is no support for comparing different XML representations of the same characters.

Requirements

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