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

This method can take many seconds to execute. It is recommended to call the asynchronous version.

  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.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public static TaskSchedulerSnapshot Create(
	TaskService ts,
	string path
)

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