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.10.1
Syntax
public bool Validate(
	bool throwException = false
)
Request Example View Source

Parameters

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

Return Value

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