SPWorkflowAssociation.ImportFromXml-Methode
Erstellt ein SPWorkflowAssociation -Objekt aus einer XML-formatierte Zeichenfolge.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function ImportFromXml ( _
rootWeb As SPWeb, _
xml As String _
) As SPWorkflowAssociation
'Usage
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
)
Parameter
rootWeb
Typ: Microsoft.SharePoint.SPWebDas SPWeb -Objekt, das die BaseTemplate der Zuordnung enthält.
xml
Typ: System.StringEine XML-Zeichenfolge, die den Zustand aller permanenten Eigenschaften der Zuordnung enthält.
Rückgabewert
Typ: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
Die SPWorkflowAssociation aus der XML-Zeichenfolge wiederhergestellt.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | rootWeb ist Null . |
ArgumentOutOfRangeException | xml ist Null oder leer. |
Hinweise
Diese Methode erstellt eine neue Workflowzuordnung aus der XML-Daten, die durch den Parameter xml dargestellt.