Click or drag to resize
Task Scheduler Managed Class Library

TaskDefinitionValidate Method

Validates the current TaskDefinition.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public bool Validate(
	bool throwException = false
)
Request Example View Source

Parameters

throwException  Boolean  (Optional)
if set to true throw a InvalidOperationException with details about invalid properties.

Return Value

Boolean
true if current TaskDefinition is valid; false if not.
See Also