Click or drag to resize
Task Scheduler Managed Class Library

EventTriggerBuildQuery Method

Builds an event log XML query string based on the input parameters.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public static string BuildQuery(
	string log,
	string source,
	int? eventId
)
Request Example View Source

Parameters

log  String
The event's log.
source  String
The event's source. Can be null.
eventId  NullableInt32
The event's id. Can be null.

Return Value

String
XML query string.
Exceptions
ExceptionCondition
ArgumentNullExceptionlog
See Also