Specifies the event type of the event log entry.
[Visual Basic] Public Enum EventLogEntryType [C#] public enum EventLogEntryType [C++] public enum EventLogEntryType
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
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. Each event must be of a single type. The application indicates the event type when it reports an event. The Event Viewer uses this type to determine which icon to display in the list view of the log.
Member Name | Description |
---|---|
Error | An error event. This indicates a significant problem the user should know about; usually a loss of functionality or data. |
FailureAudit | A failure audit event. This indicates a security event that occurs when an audited access attempt fails; for example, a failed attempt to open a file. |
Information | An information event. This indicates a significant successful operation. |
SuccessAudit | A success audit event. This indicates a security event that occurs when an audited access attempt is successful; for example, a successful logon. |
Warning | A warning event. This indicates a problem that is not immediately significant, but that may signify conditions that could cause future problems. |
Namespace: System.Diagnostics
Assembly: System.Diagnostics.dll