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.

備註

如果 obj 參數的值是 DefaultBindingPropertyAttribute 類型,而且兩個物件的 Name 屬性相等,則 Equals 方法會傳回 trueThe 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.

適用於

另請參閱