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)

Syntax

'Declaration
Public Sub New ( _
    web As SPWeb _
)
'Usage
Dim web As SPWeb

Dim instance As New SPWorkflowCollection(web)
public SPWorkflowCollection(
    SPWeb web
)

Parameters

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.

See also

Reference

SPWorkflowCollection class

SPWorkflowCollection members

SPWorkflowCollection overload

Microsoft.SharePoint.Workflow namespace