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
task
Type: Microsoft.SharePoint.SPListItemAn object that represents a SPListItem.
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). |