Category Property

EventLogEntry.Category Property

Gets the text associated with the CategoryNumber for this entry.

[Visual Basic]
Public ReadOnly Property Category As String
public string Category {get;}
public: __property String* get_Category();
public function get Category() : String;

Property Value

The application-specific category text.


Exception Type Condition
Exception 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 text strings associated with the category are stored in the computer's registry. The Event Viewer can use the category to filter events in the log.


Platforms: Windows NT Server 4.0, Windows NT Workstation 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

EventLogEntry Class | EventLogEntry Members | System.Diagnostics Namespace | CategoryNumber

© 2015 Microsoft