This topic has not yet been rated - Rate this topic

SecurityElement.Equal Method

Compares two XML element objects for equality.

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)

public bool Equal (
	SecurityElement other
)
public boolean Equal (
	SecurityElement other
)
public function Equal (
	other : SecurityElement
) : boolean

Parameters

other

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

Return Value

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.

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.

if (xmlElement.Equal(localXmlElement))

if (xmlElement.Equal(localXmlElement)) {

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ