 | 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. |
Inheritance HierarchySystemObject Microsoft.Win32.TaskSchedulerTaskSchedulerSnapshot Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
SyntaxThe TaskSchedulerSnapshot type exposes the following members.
Constructors
Properties | Name | Description |
---|
 | Items |
Gets a list of TaskSnapshot and TaskFolderSnapshot instances the represent the tasks and folders from a Task Scheduler instance.
|
 | Path | Gets the path of the file based snapshot. |
 | TargetServer | Gets the machine name of the server from which the snapshot was taken. |
 | TimeStamp | Gets the UTC time stamp for when the snapshot was taken. |
Top
Methods | Name | Description |
---|
  | 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. |
|
 | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
 | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
 | GetHashCode | Serves as the default hash function. (Inherited from Object) |
 | GetType | Gets the Type of the current instance. (Inherited from Object) |
 | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
  | Open | Opens 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. |
 | ToString | Returns a string that represents the current object. (Inherited from Object) |
Top
See Also