SecurityElement::Equal Method (SecurityElement^)
.NET Framework (current version)
Compares two XML element objects for equality.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- other
-
Type:
System.Security::SecurityElement^
An XML element object to which to compare the current XML element object.
Return Value
Type: System::Booleantrue 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.
If there are child elements, comparison extends recursively to them.
There is no support for comparing different XML representations of the same characters.
The following code shows the use of the Equal method to compare two XML elements. This code example is part of a larger example provided for the SecurityElement class.
.NET Framework
Available since 1.1
Available since 1.1
Show: