Export (0) Print
Expand All

ControlValuePropertyAttribute.Equals Method

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.

NoteNote

This method is used primarily by control developers.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft