Message.Equals(Object) 方法

定义

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

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

参数

o
Object

要与当前对象进行比较的对象。The object to compare with the current object.

返回

如果指定的对象是等于当前对象,则为 true;否则为 falsetrue if the specified object is equal to the current object; otherwise, false.

适用于