Click or drag to resize
Task Scheduler Managed Class Library

TaskSchedulerSnapshotCreate(TaskService, String) Method

Creates a compressed zip file that contains all the information accessible to the user from the TaskService instance necessary to reconstitute its tasks and folders.
Note  Note
This method can take many seconds to execute. It is recommended to call the asynchronous version.
Caution note  Caution
This method will execute without error even if the user does not have permissions to see all tasks and folders. It is imperative that the developer ensures that the user has Administrator or equivalent rights before calling this method.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public static TaskSchedulerSnapshot Create(
	TaskService ts,
	string path
)
Request Example View Source

Parameters

ts  TaskService
The TaskService from which to pull the tasks and folders.
path  String
The output zip file in which to place the snapshot information.

Return Value

TaskSchedulerSnapshot
A TaskSchedulerSnapshot instance with the contents of the specified Task Scheduler connection.
See Also