| SqlEventLogGetCategories Method |
Gets event categories from the log that match the specified criteria.
Note: See parameter descriptions for information on filtering your results.
Namespace:
Galactic.EventLog.Sql
Assembly:
Galactic.EventLog.Sql (in Galactic.EventLog.Sql.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax protected List<SqlEventLogNamedItem> GetCategories(
int id,
string name
)
Protected Function GetCategories (
id As Integer,
name As String
) As List(Of SqlEventLogNamedItem)
protected:
List<SqlEventLogNamedItem^>^ GetCategories(
int id,
String^ name
)
member GetCategories :
id : int *
name : string -> List<SqlEventLogNamedItem>
Parameters
- id
- Type: SystemInt32
The ID of the event category in the database. Provide a 0 ID to return event categories with any ID from the log. - name
- Type: SystemString
The name of the event category to return. Provide and empty or null string to return event categories with any name from the log.
Return Value
Type:
ListSqlEventLogNamedItemA list of categories that match the criteria provided.
See Also