通过


EventRecordWrittenEventArgs 类

定义

EventRecordWritten引发事件时,此对象的实例将传递给处理事件的委托方法。 此对象包含发布到事件日志的事件,或事件订阅失败时发生的异常。

public ref class EventRecordWrittenEventArgs sealed : EventArgs
public sealed class EventRecordWrittenEventArgs : EventArgs
type EventRecordWrittenEventArgs = class
    inherit EventArgs
Public NotInheritable Class EventRecordWrittenEventArgs
Inherits EventArgs
继承
EventRecordWrittenEventArgs

示例

有关使用此类的示例代码,请参阅 如何:订阅事件日志中的事件

属性

名称 说明
EventException

获取事件订阅失败时发生的异常。 异常说明订阅失败的原因。

EventRecord

获取发布到事件日志的事件记录。 此事件与事件订阅中指定的查询中的条件匹配。

方法

名称 说明
Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于