TaskSchedulerSnapshot Class

Represents all the information about the tasks and folders from a TaskService instance that can be used to reconstitute tasks and folders on the same or different systems.

  Note

This class and related classes are only available under the .NET 4.5.2 build and later .NET versions due to dependencies on threading and compressed (zip) files.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public sealed class TaskSchedulerSnapshot : IXmlSerializable
Inheritance
Object    TaskSchedulerSnapshot
Implements
IXmlSerializable

Constructors

TaskSchedulerSnapshotCreates a new instance of TaskSchedulerSnapshot from an existing snapshot.

Properties

Items Gets a list of TaskSnapshot and TaskFolderSnapshot instances the represent the tasks and folders from a Task Scheduler instance.
PathGets the path of the file based snapshot.
TargetServerGets the machine name of the server from which the snapshot was taken.
TimeStampGets the UTC time stamp for when the snapshot was taken.

Methods

Create(TaskService, String) 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.
Create(TaskServiceConnectionToken, String, CancellationToken, IProgressTupleInt32, String) 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.

  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.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OpenOpens an existing snapshot and returns a new instance of TaskSchedulerSnapshot.
Restore(TaskService, ICollectionSnapshotItem, Boolean, Boolean, IDictionaryString, String)Register a list of snapshot items (tasks and folders) into the specified Task Scheduler.
Restore(TaskServiceConnectionToken, ICollectionSnapshotItem, Boolean, Boolean, IDictionaryString, String, CancellationToken, IProgressTupleInt32, String)Register a list of snapshot items (tasks and folders) into the specified Task Scheduler.
Restore(TaskServiceConnectionToken, IEnumerableString, Boolean, Boolean, IDictionaryString, String, CancellationToken, IProgressTupleInt32, String)Register a list of snapshot items (tasks and folders) into the specified Task Scheduler.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also