EventLogEntry.CategoryNumber Property

 

Gets the category number of the event log entry.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public short CategoryNumber { get; }

Property Value

Type: System.Int16

The application-specific category number for this entry.

Each application (event source) can define its own numbered categories and the text strings to which they are mapped. The Event Viewer can use the category to filter events in the log. The categories must be numbered consecutively beginning with the number 1. The category number is specified by the EventInstance.CategoryId property. The Event Viewer can display the category as a numeric value, or it can use the category as a resource identifier to display a localized category string. For more information, see EventInstance.

.NET Framework
Available since 1.1
Return to top
Show: