System.Diagnostics.EventLogEntry.CategoryNumber Property

Gets the category number of the event log entry.

Syntax

[System.Diagnostics.MonitoringDescription("An ID for the category of this event entry.")]
public short CategoryNumber { get; }

Value

Documentation for this section has not yet been entered.

Remarks

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 System.Diagnostics.EventInstance.

Requirements

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