DefaultBindingPropertyAttribute.Equals(Object) 方法

定义

确定指定的 Object 是否等同于当前的 DefaultBindingPropertyAttribute 实例。Determines whether the specified Object is equal to the current DefaultBindingPropertyAttribute instance.

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

要与当前的 Object 实例进行比较的 DefaultBindingPropertyAttributeThe Object to compare with the current DefaultBindingPropertyAttribute instance

返回

Boolean

如果该对象等同于当前的实例,则为 true;否则为 false,指示两者不等同。true if the object is equal to the current instance; otherwise, false, indicating they are not equal.

注解

Equals true 如果参数的值 obj 的类型为 DefaultBindingPropertyAttribute ,并且 Name 两个对象的属性相等,则此方法返回。The Equals method returns true if the value of the obj parameter is of type DefaultBindingPropertyAttribute and the Name properties of the two objects are equal.

适用于

另请参阅