SPWorkflow Constructor (SPWeb, Guid)
Initializes a new instance of a single workflow instance running on an SPWeb 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 ( _
web As SPWeb, _
workflowInstanceId As Guid _
)
'Usage
Dim web As SPWeb
Dim workflowInstanceId As Guid
Dim instance As New SPWorkflow(web, workflowInstanceId)
public SPWorkflow(
SPWeb web,
Guid workflowInstanceId
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn object that represents a SPWeb.
workflowInstanceId
Type: System.GuidA GUID that contains the instance ID of the workflow.
See Also
Reference
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in SharePoint Foundation