This topic has not yet been rated - Rate this topic

SPWorkflowAssociation.ImportFromXml Method

SharePoint 2010

Creates an SPWorkflowAssociation object from an XML formatted string.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public static SPWorkflowAssociation ImportFromXml(
	SPWeb rootWeb,
	string xml
)

Parameters

rootWeb
Type: Microsoft.SharePoint.SPWeb
The SPWeb object that contains the BaseTemplate of the association.
xml
Type: System.String
An XML string that contains the state of all persisted properties of the association.

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
The SPWorkflowAssociation reconstructed from the XML string.
Exception Condition
ArgumentNullException

rootWeb is null.

ArgumentOutOfRangeException

xml is null or empty.

This method creates a new workflow association from the XML data represented by the xml parameter.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ