Task Scheduler Managed Class Library
C#
Show/Hide TOC
Task
Service
New
Task
From
File 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
C#
Copy
View Source
Request Example
public
TaskDefinition
NewTaskFromFile
(
string
xmlFile
)
Parameters
xmlFile
String
The XML file to use as input.
Return Value
TaskDefinition
A
TaskDefinition
instance.
Exceptions
NotV1SupportedException
Importing from an XML file is only supported under Task Scheduler 2.0.
See Also
Reference
TaskService Class
Microsoft.Win32.TaskScheduler Namespace
In This Article
Definition
Parameters
Return Value
Exceptions
See Also