SPWorkflowTask.GetWorkflowData Method

Gets all fields and values for a workflow task as a string in xml format.

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 GetWorkflowData ( _
    task As SPListItem _
) As String
'Usage
Dim task As SPListItem
Dim returnValue As String

returnValue = SPWorkflowTask.GetWorkflowData(task)
public static string GetWorkflowData(
    SPListItem task
)

Parameters

Return Value

Type: System.String
A string that contains workflow task in xml format.

Exceptions

Exception Condition
ArgumentNullException

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

See Also

Reference

SPWorkflowTask Class

SPWorkflowTask Members

Microsoft.SharePoint.Workflow Namespace