Export (0) Print
Expand All

EventLogEntry.Category Property

Gets the text associated with the CategoryNumber for this entry.

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

Property Value

The application-specific category text.

Exceptions

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

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft