Share via


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 Windows SharePoint Services Overview

How Windows SharePoint Services Processes Workflow Activities

Workflow Task Forms (Windows SharePoint Services)