TaskDefinitionData Property

Gets or sets the data that is associated with the task. This data is ignored by the Task Scheduler service, but is used by third-parties who wish to extend the task format.


Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public string Data { get; set; }

Property Value



For V1 tasks, this library makes special use of the SetWorkItemData and GetWorkItemData methods and does not expose that data stream directly. Instead, it uses that data stream to hold a dictionary of properties that are not supported under V1, but can have values under V2. An example of this is the URI value which is stored in the data stream.

The library does not provide direct access to the V1 work item data. If using V2 properties with a V1 task, programmatic access to the task using the native API will retrieve unreadable results from GetWorkItemData and will eliminate those property values if SetWorkItemData is used.

See Also