Share via


SPWorkflowCollection constructor (SPListItem, SPWorkflowState, SPWorkflowState)

Initializes a new instance of the SPWorkflowCollection class that matches the criteria from the inclusiveFilterStates parameter and the exclusiveFilterStates parameter for all of the workflows on the SPListItem object.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    item As SPListItem, _
    inclusiveFilterStates As SPWorkflowState, _
    exclusiveFilterStates As SPWorkflowState _
)
'Usage
Dim item As SPListItem
Dim inclusiveFilterStates As SPWorkflowState
Dim exclusiveFilterStates As SPWorkflowState

Dim instance As New SPWorkflowCollection(item, inclusiveFilterStates, _
    exclusiveFilterStates)
public SPWorkflowCollection(
    SPListItem item,
    SPWorkflowState inclusiveFilterStates,
    SPWorkflowState exclusiveFilterStates
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

The item parameter is null .

See also

Reference

SPWorkflowCollection class

SPWorkflowCollection members

SPWorkflowCollection overload

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