This documentation is archived and is not being maintained.

AttributeCollection::Equals Method

Determines whether the current instance of the AttributeCollection object is equal to the specified object.

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
virtual bool Equals(
	Object^ o
) override

Parameters

o
Type: System::Object
The object instance to compare with this instance.

Return Value

Type: System::Boolean
true if the object that is contained in the o parameter is equal to the current instance of AttributeCollection; otherwise, false.

For the compared objects to be equal, they must meet the following criteria:

  • The object that is contained in the o parameter must be an AttributeCollection object.

  • Both collections must contain the same number of items.

  • The key value of each entry in both collections must match.

    NoteNote

    This method is primarily used by control developers.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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