다음을 통해 공유


SPWorkflow Constructor (SPListItem, Guid)

Initializes a new instance of a single workflow instance running on a SPListItem to be retrieved from the database.

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

Syntax

'Declaration
Public Sub New ( _
    item As SPListItem, _
    workflowInstanceId As Guid _
)
'Usage
Dim item As SPListItem
Dim workflowInstanceId As Guid

Dim instance As New SPWorkflow(item, workflowInstanceId)
public SPWorkflow(
    SPListItem item,
    Guid workflowInstanceId
)

Parameters

  • workflowInstanceId
    Type: System.Guid

    A GUID that contains the

    instance ID of the workflow.

See Also

Reference

SPWorkflow Class

SPWorkflow Members

SPWorkflow Overload

Microsoft.SharePoint.Workflow Namespace

Other Resources

Workflows in SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation