System.Diagnostics.EventLog.EnableRaisingEvents Property

Gets or sets a value indicating whether the System.Diagnostics.EventLog receives EventLog.EntryWritten event notifications.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DefaultValue(false)]
[System.Diagnostics.MonitoringDescription("If enabled raises event when a log is written.")]
public bool EnableRaisingEvents { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The EventLog.EnableRaisingEvents property determines whether the System.Diagnostics.EventLog raises events when entries are written to the log. When the property is true, components that receive the EventLog.EntryWritten event will receive notification any time an entry is written to the log that is specified in the EventLog.Log property. If EventLog.EnableRaisingEvents is false, no events are raised.

Note:

You can receive event notifications only when entries are written on the local computer. You cannot receive notifications for entries written on remote computers.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0