SPWorkflowCollection Constructor (SPWeb)
Initializes a new instance of the SPWorkflowCollection class for the site-based workflows on an SPWeb object.
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 _
)
'Usage
Dim web As SPWeb
Dim instance As New SPWorkflowCollection(web)
public SPWorkflowCollection(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebAn SPWeb object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The web parameter is null . |
Remarks
This method is used for site-based workflows.
All workflows in this collection are site-based workflows and part of this SPWeb object. These workflows are to run inside an SPWeb object, not on an SPListItem object. The workflows were created from an SPWorkflowAssociation object that was associated with an SPWeb object, rather than associated with an SPList object.