| EventLogFind Method |
Finds events that match the filters provided.
See each parameter for information on how to filter the search.
Namespace:
Galactic.EventLog
Assembly:
Galactic.EventLog (in Galactic.EventLog.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax public abstract List<Event> Find(
string source,
Nullable<EventSeverityLevels> severity,
string category,
Nullable<DateTime> begin,
Nullable<DateTime> end
)
Public MustOverride Function Find (
source As String,
severity As Nullable(Of EventSeverityLevels),
category As String,
begin As Nullable(Of DateTime),
end As Nullable(Of DateTime)
) As List(Of Event)
public:
virtual List<Event^>^ Find(
String^ source,
Nullable<EventSeverityLevels> severity,
String^ category,
Nullable<DateTime> begin,
Nullable<DateTime> end
) abstract
abstract Find :
source : string *
severity : Nullable<EventSeverityLevels> *
category : string *
begin : Nullable<DateTime> *
end : Nullable<DateTime> -> List<Event>
Parameters
- source
- Type: SystemString
Searches for all events with sources that match the string provided. Returns events of all sources on a null or empty string. - severity
- Type: SystemNullableEventSeverityLevels
Searches for events with the specified severity level. Returns events of all severity levels on null. - category
- Type: SystemString
Searches for events with categories that match the string provided. Returns events of all categories on a null or empty string. - begin
- Type: SystemNullableDateTime
Returns events with a date/time on or after the date/time supplied. Does not put a lower range on event dates on a null date/time. - end
- Type: SystemNullableDateTime
Returns events with a date/time on or before the date/time supplied. Does not put an upper range on event dates on a null date/time.
Return Value
Type:
ListEventA list of events sorted from earliest to latest that match the given search parameters.
Implements
IEventLogFind(String, NullableEventSeverityLevels, String, NullableDateTime, NullableDateTime)See Also