SPContentType.UpdateWorkflowAssociation-Methode
HINWEIS: Diese API ist veraltet.
Verwenden Sie die WorkflowAssociations.Update -Methode.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<ObsoleteAttribute("Use WorkflowAssociations.Update() instead")> _
Public Sub UpdateWorkflowAssociation ( _
workflowAssociation As SPWorkflowAssociation _
)
'Usage
Dim instance As SPContentType
Dim workflowAssociation As SPWorkflowAssociation
instance.UpdateWorkflowAssociation(workflowAssociation)
[ObsoleteAttribute("Use WorkflowAssociations.Update() instead")]
public void UpdateWorkflowAssociation(
SPWorkflowAssociation workflowAssociation
)
Parameter
workflowAssociation
Typ: Microsoft.SharePoint.Workflow.SPWorkflowAssociationDie Workflowzuordnung, die aktualisiert wurde.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | Das SPWorkflowAssociation -Objekt ist ein Nullverweis (Nothing in Visual Basic). |
Hinweise
Wenn die Workflowzuordnung, die Sie Updaten in den Inhaltstyp-Auflistung nicht vorhanden ist, hat diese Methode keine Auswirkungen. Sie können eine Zuordnung Vorhandensein durch Aufrufen der Methode GetAssociationByNametesten. Wenn Sie der Rückgabewert dieser Methode ein Nullverweis (Nothing in Visual Basic)ist, ist die Zuordnung nicht in der Auflistung.