System.Diagnostics.EventLogInstaller.CategoryCount Property

Gets or sets the number of categories in the category resource file.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public int CategoryCount { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the EventLogInstaller.CategoryCount and EventLogInstaller.CategoryResourceFile properties to write events with localized category strings. The Event Viewer displays the category for an event entry, if you supply a category when you write the event. Event log categories are application-defined strings that help filter events, or provide information on an event. For example, your application can define separate categories for different components or different operations.

Event categories are optional; if your application does not use categories, do not set the EventLogInstaller.CategoryCount and EventLogInstaller.CategoryResourceFile properties.

For details about defining event messages and building event resource files, see the "Message Compiler" topic in the Platform SDK documentation at tp://msdn.microsoft.com/.

Requirements

Namespace: System.Diagnostics
Assembly: System.Configuration.Install (in System.Configuration.Install.dll)
Assembly Versions: 2.0.0.0