SiteMapNode.Equals Method (Object)

Gets a value indicating whether the current SiteMapNode is identical to the specified object.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

public:
virtual bool Equals (
	Object^ obj
) override
public boolean Equals (
	Object obj
)
public override function Equals (
	obj : Object
) : boolean
Not applicable.

Parameters

obj

An object to compare to the current SiteMapNode.

Return Value

true if obj is both a SiteMapNode and identical to the current SiteMapNode; otherwise, false.

Two SiteMapNode objects are considered equal if both of the following conditions are met:

  • Both SiteMapNode objects have the same value for the Key property.

  • The culture-invariant, case-insensitive comparison of both Url properties returns true.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: