Gets the type of this entry.
[Visual Basic] Public ReadOnly Property EntryType As EventLogEntryType [C#] public EventLogEntryType EntryType {get;} [C++] public: __property EventLogEntryType get_EntryType(); [JScript] public function get EntryType() : EventLogEntryType;
The EventLogEntryType that indicates the Event Type associated with the entry in the event log system.
There are five types of events that can be logged. All event classifications have well-defined common data and can optionally include event-specific data. The application indicates the event type when it reports an event. Each event must be of a single type. The Event Viewer uses this type to determine which icon to display in the list view of the log.
The event log entry type can be:
Value | Type |
---|---|
1 | Error |
2 | Warning |
4 | Information |
8 | Success Audit |
16 | Failure Audit |
EventLogEntry Class | EventLogEntry Members | System.Diagnostics Namespace | CategoryNumber