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)

Syntax

'Declaration
<ValidationOptionAttribute(ValidationOption.Required)> _
Public Property TaskProperties As SPWorkflowTaskProperties
    Get
    Set
'Usage
Dim instance As CreateTask
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.

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.

Note

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.

See Also

Reference

CreateTask Class

CreateTask Members

Microsoft.SharePoint.WorkflowActions Namespace

Other Resources

Workflow Activities for SharePoint Foundation

How SharePoint Foundation Processes Workflow Activities

Workflow Task Forms (SharePoint Foundation)