SPWorkflowTask.GetExtendedPropertiesAsHashtable Method

Gets a hash table that represents the task’s extended properties collection.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public static Hashtable GetExtendedPropertiesAsHashtable(
	SPListItem task
)

Parameters

task
Type: Microsoft.SharePoint.SPListItem

The workflow task.

Return Value

Type: System.Collections.Hashtable
A hash table with name-value pairs.

ExceptionCondition
ArgumentNullException

The argument to the task parameter is a null reference (Nothing in Visual Basic).

This method expects that the list item that is passed as an argument to the task parameter has a field with an ID that is SPBuiltInFieldId.ExtendedProperties and that the value of the field is a set of name-value pairs that conform to attributes on an XML element. Those name-value pairs are returned as a hash table when the GetExtendedPropertiesAsHashtable method is called.

Show: