TaskServiceNewTaskFromFile Method

Returns a TaskDefinition populated with the properties defined in an XML file.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public TaskDefinition NewTaskFromFile(
	string xmlFile
)

Parameters

xmlFile  String
The XML file to use as input.

Return Value

TaskDefinition
A TaskDefinition instance.

Exceptions

NotV1SupportedExceptionImporting from an XML file is only supported under Task Scheduler 2.0.

See Also