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 Shared Function GetExtendedPropertiesAsHashtable ( _
    task As SPListItem _
) As Hashtable
Dim task As SPListItem
Dim returnValue As Hashtable

returnValue = SPWorkflowTask.GetExtendedPropertiesAsHashtable(task)
public static Hashtable GetExtendedPropertiesAsHashtable(
    SPListItem task


Return Value

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


Exception Condition

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.

See Also


SPWorkflowTask Class

SPWorkflowTask Members

Microsoft.SharePoint.Workflow Namespace