Share via


EventLogEntry.Equals(EventLogEntry) 方法

定义

对两个事件日志项进行比较。

public:
 bool Equals(System::Diagnostics::EventLogEntry ^ otherEntry);
public bool Equals (System.Diagnostics.EventLogEntry otherEntry);
override this.Equals : System.Diagnostics.EventLogEntry -> bool
Public Function Equals (otherEntry As EventLogEntry) As Boolean

参数

otherEntry
EventLogEntry

要比较的 EventLogEntry

返回

如果 EventLogEntry 对象完全相同,则为 true;否则为 false

注解

此方法在两个对象之间执行逐字节比较。 它无法确定这两个 EventLogEntry 实例是否引用同一对象。

适用于