SPWorkflowAssociation.ImportFromXml - Méthode
Crée un objet SPWorkflowAssociation à partir d'une chaîne au format XML.
Espace de noms : Microsoft.SharePoint.Workflow
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Shared Function ImportFromXml ( _
rootWeb As SPWeb, _
xml As String _
) As SPWorkflowAssociation
'Utilisation
Dim rootWeb As SPWeb
Dim xml As String
Dim returnValue As SPWorkflowAssociation
returnValue = SPWorkflowAssociation.ImportFromXml(rootWeb, _
xml)
public static SPWorkflowAssociation ImportFromXml(
SPWeb rootWeb,
string xml
)
Paramètres
rootWeb
Type : Microsoft.SharePoint.SPWebL'objet SPWeb qui contient la BaseTemplate de l'association.
xml
Type : System.StringUne chaîne XML qui contient l'état de toutes les propriétés persistantes de l'association.
Valeur renvoyée
Type : Microsoft.SharePoint.Workflow.SPWorkflowAssociation
SPWorkflowAssociation reconstruites à partir de la chaîne XML.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | rootWeb est null . |
ArgumentOutOfRangeException | xml est null ou est vide. |
Remarques
Cette méthode crée une nouvelle association de flux de travail à partir des données XML représentées par le paramètre xml .