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)

public static Hashtable GetExtendedPropertiesAsHashtable(
	SPListItem task


Type: Microsoft.SharePoint.SPListItem

The workflow task.

Return value

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


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.