UpdateTask.TaskProperties Property
Gets or sets a SPWorkflowTaskProperties object you can use to specify the property values you want to set for the task you are updating.
Namespace: Microsoft.SharePoint.WorkflowActions
Assembly: Microsoft.SharePoint.WorkflowActions (in Microsoft.SharePoint.WorkflowActions.dll)
Syntax
'Declaration
<ValidationOptionAttribute(ValidationOption.Required)> _
Public Property TaskProperties As SPWorkflowTaskProperties
Get
Set
'Usage
Dim instance As UpdateTask
Dim value As SPWorkflowTaskProperties
value = instance.TaskProperties
instance.TaskProperties = value
[ValidationOptionAttribute(ValidationOption.Required)]
public SPWorkflowTaskProperties TaskProperties { get; set; }
Property Value
Type: Microsoft.SharePoint.Workflow.SPWorkflowTaskProperties
Remarks
Use the ExtendedProperties property of the SPWorkflowTaskProperties object to include custom metadata for your task. The ExtendedProperties property takes a System.Collections.Hashtable object.
When you write to the ExtendedProperties hash table, SharePoint Foundation examines each key-value pair and performs the following function:
If a value has a key-name that matches the name of a field 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 field for that task, the value is written to the SPListItem.Properties object of that task. The SPListItem.Properties property returns a System.Collections.Hashtable object. Writing data to this object makes it available through the SharePoint Foundation.
Note
The object specified in this property is only used as a mean for sending task properties to SharePoint Foundation. Its contents are not synchronized with the SharePoint task.
See Also
Reference
Microsoft.SharePoint.WorkflowActions Namespace
Other Resources
Workflow Activities for SharePoint Foundation