Bewerken

Share via


EventLogQuery Constructors

Definition

Initializes a new instance of the EventLogQuery class.

Overloads

EventLogQuery(String, PathType)

Initializes a new instance of the EventLogQuery class by specifying the target of the query. The target can be an active event log or a log file.

EventLogQuery(String, PathType, String)

Initializes a new instance of the EventLogQuery class by specifying the target of the query and the event query. The target can be an active event log or a log file.

EventLogQuery(String, PathType)

Source:
EventLogQuery.cs
Source:
EventLogQuery.cs
Source:
EventLogQuery.cs
Source:
EventLogQuery.cs
Source:
EventLogQuery.cs

Initializes a new instance of the EventLogQuery class by specifying the target of the query. The target can be an active event log or a log file.

public:
 EventLogQuery(System::String ^ path, System::Diagnostics::Eventing::Reader::PathType pathType);
public EventLogQuery (string path, System.Diagnostics.Eventing.Reader.PathType pathType);
new System.Diagnostics.Eventing.Reader.EventLogQuery : string * System.Diagnostics.Eventing.Reader.PathType -> System.Diagnostics.Eventing.Reader.EventLogQuery
Public Sub New (path As String, pathType As PathType)

Parameters

path
String

The name of the event log to query, or the path to the event log file to query.

pathType
PathType

Specifies whether the string used in the path parameter specifies the name of an event log, or the path to an event log file.

See also

Applies to

EventLogQuery(String, PathType, String)

Source:
EventLogQuery.cs
Source:
EventLogQuery.cs
Source:
EventLogQuery.cs
Source:
EventLogQuery.cs
Source:
EventLogQuery.cs

Initializes a new instance of the EventLogQuery class by specifying the target of the query and the event query. The target can be an active event log or a log file.

public:
 EventLogQuery(System::String ^ path, System::Diagnostics::Eventing::Reader::PathType pathType, System::String ^ query);
public EventLogQuery (string path, System.Diagnostics.Eventing.Reader.PathType pathType, string query);
new System.Diagnostics.Eventing.Reader.EventLogQuery : string * System.Diagnostics.Eventing.Reader.PathType * string -> System.Diagnostics.Eventing.Reader.EventLogQuery
Public Sub New (path As String, pathType As PathType, query As String)

Parameters

path
String

The name of the event log to query, or the path to the event log file to query.

pathType
PathType

Specifies whether the string used in the path parameter specifies the name of an event log, or the path to an event log file.

query
String

The event query used to retrieve events that match the query conditions.

See also

Applies to