CreateTask.TaskProperties Property

Gets and sets an SPWorkflowTaskProperties object that specifies the property values to set for the task you are creating.

Namespace:  Microsoft.SharePoint.WorkflowActions
Assembly:  Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)

public SPWorkflowTaskProperties TaskProperties { get; set; }

Use the ExtendedProperties property of the SPWorkflowTaskProperties object to include custom metadata for your task.

When you write to the ExtendedProperties hash table, Windows SharePoint Services 3.0 examines each key/value pair and performs the following function:

  • If a value has a key name that matches the field name on the task content type, that value is written to the matching field.

  • If a value's key name does not match any of the fields for that task, the value is written to the Properties object of that task. The Properties property returns a System.Collections.Hashtable object. Writing data to this object makes it available through the SharePoint Foundation object model.


The object specified in this property is used to send task properties to SharePoint Foundation. Its contents are not synchronized with the SharePoint 2010 task.