共用方式為


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

Syntax

'Declaration
Public Shared Function GetExtendedPropertiesAsHashtable ( _
    task As SPListItem _
) As Hashtable
'Usage
Dim task As SPListItem
Dim returnValue As Hashtable

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

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

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

Reference

SPWorkflowTask Class

SPWorkflowTask Members

Microsoft.SharePoint.Workflow Namespace

ExtendedProperties