DataRowView.Equals(Object) 方法

定义

获取一个值,该值指示当前的 DataRowView 是否与指定对象相同。Gets a value indicating whether the current DataRowView is identical to the specified object.

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

参数

other
Object

要比较的 ObjectAn Object to be compared.

返回

Boolean

如果 objectDataRowView 且它返回与当前 DataRowView 相同的行,则为 true;否则为 falsetrue if object is a DataRowView and it returns the same row as the current DataRowView; otherwise false.

注解

此方法检查引用相等性,而不是检查 DataView 或是否 Row 等效。This method checks for reference equality instead of checking whether DataView or Row are equivalent.

适用于