System.Diagnostics.EventLogEntryCollection.Count Property

Gets the number of entries in the event log (that is, the number of elements in the System.Diagnostics.EventLogEntry collection).

Syntax

public int Count { get; }

Value

Documentation for this section has not yet been entered.

Remarks

An System.Diagnostics.EventLogEntryCollection represents a dynamic list of all the entries in a log. Therefore, the EventLogEntryCollection.Count property can change during the lifetime of the System.Diagnostics.EventLogEntryCollection instance that you create. It is usually best to work with the EventLogEntryCollection.Count property directly instead of assigning its value to a variable.

Requirements

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