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.10.1
Syntax
public static string BuildQuery(
	string log,
	string source,
	int? eventId
)
Request Example View Source

Parameters

log
Type: SystemString
The event's log.
source
Type: SystemString
The event's source. Can be null.
eventId
Type: SystemNullableInt32
The event's id. Can be null.

Return Value

Type: String
XML query string.
Exceptions
ExceptionCondition
ArgumentNullExceptionlog
See Also