SPWorkflowAssociationCollection.GetAssociationForListItemById-Methode
Gibt die angegebene Workflow-Zuordnung für ein bestimmtes Listenelement zurück.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetAssociationForListItemById ( _
item As SPListItem, _
associationId As Guid _
) As SPWorkflowAssociation
'Usage
Dim item As SPListItem
Dim associationId As Guid
Dim returnValue As SPWorkflowAssociation
returnValue = SPWorkflowAssociationCollection.GetAssociationForListItemById(item, _
associationId)
public static SPWorkflowAssociation GetAssociationForListItemById(
SPListItem item,
Guid associationId
)
Parameter
item
Typ: Microsoft.SharePoint.SPListItemDas Listenelement für die Workflowzuordnung abgerufen.
associationId
Typ: System.GuidDie ID der Workflowzuordnung.
Rückgabewert
Typ: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
Ein SPWorkflowAssociation -Objekt, das die angegebene Workflowzuordnung darstellt.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | item ist Null . |
Hinweise
Diese Methode wird mit der durch den associationId -Parameter für die durch den item -Parameter angegebene Listenelement-ID die Workflowzuordnung.
Siehe auch
Referenz
SPWorkflowAssociationCollection Klasse