Message.Equals 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
Equals(Object) |
确定指定对象是否等于当前对象。 |
Equals(Message) |
指示当前对象是否等于同一类型的另一个对象。 |
- Source:
- Message.cs
- Source:
- Message.cs
- Source:
- Message.cs
确定指定对象是否等于当前对象。
public:
override bool Equals(System::Object ^ o);
C#
public override bool Equals(object o);
C#
public override readonly bool Equals(object? o);
C#
public override bool Equals(object? o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean
参数
- o
- Object
要与当前对象进行比较的对象。
返回
如果指定的对象是等于当前对象,则为 true
;否则为 false
。
适用于
.NET Framework 4.8.1 和其他版本
产品 | 版本 |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
- Source:
- Message.cs
- Source:
- Message.cs
- Source:
- Message.cs
指示当前对象是否等于同一类型的另一个对象。
public:
virtual bool Equals(System::Windows::Forms::Message other);
C#
public readonly bool Equals(System.Windows.Forms.Message other);
C#
public bool Equals(System.Windows.Forms.Message other);
override this.Equals : System.Windows.Forms.Message -> bool
Public Function Equals (other As Message) As Boolean
参数
- other
- Message
一个与此对象进行比较的对象。
返回
如果当前对象等于 other
参数,则为 true
;否则为 false
。
实现
适用于
Windows Desktop 10 和其他版本
产品 | 版本 |
---|---|
Windows Desktop | 7, 8, 9, 10 |