FilterableAttribute.Equals(Object) 方法

定义

确定 FilterableAttribute 类的当前实例是否等于指定的对象。Determines whether the current instance of the FilterableAttribute class is equal to the specified object.

public:
 override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

参数

obj
Object

要与此实例进行比较的 ObjectThe Object to compare with this instance.

返回

Boolean

如果 obj 参数中包含的对象等于 FilterableAttribute 对象的当前实例,则为 true;否则为 falsetrue if the object contained in the obj parameter is equal to the current instance of the FilterableAttribute object; otherwise, false.

注解

使用 Equals 方法来确定类的当前实例是否 FilterableAttribute 等于指定的对象。Use the Equals method to determine whether the current instance of the FilterableAttribute class is equal to the specified object. 要使对象相等,必须满足以下条件:For the objects to be equal, they must meet the following criteria:

  1. 参数中包含的对象 obj 必须是 FilterableAttribute 对象。The object contained in the obj parameter must be a FilterableAttribute object.

  2. Filterable这两个对象的属性必须相等。The Filterable property of both objects must be equal.

备注

此方法主要由控件开发人员使用。This method is used primarily by control developers.

适用于

另请参阅