System.Diagnostics.EventLog.OverflowAction Property

Gets the configured behavior for storing new entries when the event log reaches its maximum log file size.

Syntax

[System.ComponentModel.Browsable(false)]
[System.MonoTODO]
[System.Runtime.InteropServices.ComVisible(false)]
public OverflowAction OverflowAction { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Event logs grow in size as new events are written to them. Each event log has a configured maximum size limit; the EventLog.MaximumKilobytes property defines the maximum number of kilobytes allowed for the event log file size.

Use the EventLog.OverflowAction property value to examine the configured overflow behavior for an event log at its maximum size. Use the EventLog.ModifyOverflowPolicy(OverflowAction, int) method to change the overflow behavior for an event log.

Note:

The overflow behavior takes effect only when an event log reaches its maximum file size. The overflow behavior does not affect writing a new entry to a log that can accommodate additional event log entries.

Requirements

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