Compartilhar via


SPWorkflowCollection.Item Property (Guid)

Gets the specified workflow instance.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    instanceId As Guid _
) As SPWorkflow
    Get
'Usage
Dim instance As SPWorkflowCollection
Dim instanceId As Guid
Dim value As SPWorkflow

value = instance(instanceId)
public SPWorkflow this[
    Guid instanceId
] { get; }

Parameters

  • instanceId
    Type: System.Guid

    The ID of the workflow instance.

Property Value

Type: Microsoft.SharePoint.Workflow.SPWorkflow
An SPWorkflow object that represents the workflow instance.

See Also

Reference

SPWorkflowCollection Class

SPWorkflowCollection Members

Item Overload

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation