| SqlEventLogGetEvents Method |
Gets events from the log that match 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<SqlEventLogEvent> GetEvents(
int sourceId,
int categoryId,
int severityId,
Nullable<DateTime> begin,
Nullable<DateTime> end
)
Protected Function GetEvents (
sourceId As Integer,
categoryId As Integer,
severityId As Integer,
begin As Nullable(Of DateTime),
end As Nullable(Of DateTime)
) As List(Of SqlEventLogEvent)
protected:
List<SqlEventLogEvent^>^ GetEvents(
int sourceId,
int categoryId,
int severityId,
Nullable<DateTime> begin,
Nullable<DateTime> end
)
member GetEvents :
sourceId : int *
categoryId : int *
severityId : int *
begin : Nullable<DateTime> *
end : Nullable<DateTime> -> List<SqlEventLogEvent>
Parameters
- sourceId
- Type: SystemInt32
The ID of the source from which events originated in the database. Provide a 0 ID to return events with any ID from the log. - categoryId
- Type: SystemInt32
The ID of the category to which an event belongs in the database. Provide a 0 ID to return events with any ID from the log. - severityId
- Type: SystemInt32
The ID of the severity level to which an event belongs in the database. Provide a 0 ID to return events with any ID from the log. - begin
- Type: SystemNullableDateTime
Return events that occur on or after this date. Provide a null date to specify no lower bound on the date of events to return. - end
- Type: SystemNullableDateTime
Returns events that occur on or before this date. Provide a null date to specify no upper bound on the date of events to return.
Return Value
Type:
ListSqlEventLogEventA list of events that match the criteria provided.
See Also