EventLogQuery Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기