EventLogEntry.Category Property


Gets the text associated with the CategoryNumber property for this entry.

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

public string Category { get; }

Property Value

Type: System.String

The application-specific category text.

Exception Condition

The space could not be allocated for one of the insertion strings associated with the category.

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.

.NET Framework
Available since 1.1
Return to top