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)
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
item
Type: Microsoft.SharePoint.SPListItemAn object that represents a SPListItem.
workflowInstanceId
Type: System.GuidA GUID that contains the
instance ID of the workflow.
See also
Reference
Microsoft.SharePoint.Workflow namespace
Other resources
Workflows in Windows SharePoint Services
Workflow Development for Windows SharePoint Services
Workflow Object Model in Windows SharePoint Services Overview