20 if (cachedEntry ==
null)
30 this.entries = entries;
33 public bool MoveNext()
36 cachedEntry = entries.GetEntryAtNoThrow(num);
37 return cachedEntry !=
null;
46 private EventLogInternal log;
50 public int Count => log.EntryCount;
59 return log.GetEntryAt(index);
84 internal EventLogEntryCollection(EventLogInternal log)
101 return new EntriesEnumerator(
this);
106 return log.GetEntryAtNoThrow(index);
114 EventLogEntry[] allEntries = log.GetAllEntries();
115 Array.
Copy(allEntries, 0, array, index, allEntries.Length);
object SyncRoot
Gets an object that can be used to synchronize access to the T:System.Collections....
void CopyTo(EventLogEntry[] entries, int index)
Copies the elements of the T:System.Diagnostics.EventLogEntryCollection to an array of T:System....
Encapsulates a single record in the event log. This class cannot be inherited.
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
bool IsSynchronized
Gets a value indicating whether access to the T:System.Collections.ICollection is synchronized (threa...
Defines size and enumerators for a collection of T:System.Diagnostics.EventLogEntry instances.
int Count
Gets the number of entries in the event log (that is, the number of elements in the T:System....
IEnumerator GetEnumerator()
Supports a simple iteration over the T:System.Diagnostics.EventLogEntryCollection object.
static void Copy(Array sourceArray, Array destinationArray, int length)
Copies a range of elements from an T:System.Array starting at the first element and pastes them into ...
The exception that is thrown when a method call is invalid for the object's current state.
Defines size, enumerators, and synchronization methods for all nongeneric collections.
void CopyTo(Array array, int index)
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a parti...
Supports a simple iteration over a non-generic collection.