Share via


GetEventRecords method of the MSFT_MTEventChannel class

Retrieves the details of events generated in an event log by a particular source.

Syntax

uint32 GetEventRecords(
  [in]  string             FilterXml,
  [in]  uint64             Skip,
  [in]  uint64             Top,
  [in]  boolean            ReverseDirection,
  [in]  uint32             BatchSize,
  [out] MSFT_MTEventRecord Result[]
);

Parameters

FilterXml [in]

The xml string of event filter query.

Skip [in]

The number of event records to skip from the query's result set.

Top [in]

The number of events to return from query's result set after skipping the count of events specified by Skip parameter.

ReverseDirection [in]

The condition of query direction, reverses direction if set to true.

BatchSize [in]

The batch size to use for streaming data back to the client.

Result [out]

Embedded MSFT_MTEventRecord instances representing the events that match the query.

Requirements

Minimum supported client
Windows 10 [desktop apps only]
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\ManagementTools
MOF
MtTmProv.mof
DLL
MtTmProv.dll

See also

MSFT_MTEventChannel