ControlValuePropertyAttribute.Equals Method (Object)

 

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

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

public override bool Equals(
	object obj
)

Parameters

obj
Type: System.Object

The Object to compare with this instance.

Return Value

Type: System.Boolean

true if the object contained in the obj parameter is equal to the current instance of ControlValuePropertyAttribute; otherwise, false.

Use the Equals method to determine whether the current instance of the ControlValuePropertyAttribute object is equal to the specified object. For the objects to be equal, they must meet the following criteria:

  1. The object contained in the obj parameter must be a ControlValuePropertyAttribute object.

  2. The Name and DefaultValue properties of both objects must be equal.

System_CAPS_noteNote

This method is used primarily by control developers.

.NET Framework
Available since 2.0
Return to top
Show: