SPWorkflowCollection constructor (SPWeb, SPWorkflowState, SPWorkflowState, Int32, Boolean)

Initializes a new instance of the SPWorkflowCollection class that matches the criteria from the inclusiveFilterStates and exclusiveFilterStates parameters 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, _
    inclusiveFilterStates As SPWorkflowState, _
    exclusiveFilterStates As SPWorkflowState, _
    rowCountLimit As Integer, _
    descending As Boolean _
)
'Usage
Dim web As SPWeb
Dim inclusiveFilterStates As SPWorkflowState
Dim exclusiveFilterStates As SPWorkflowState
Dim rowCountLimit As Integer
Dim descending As Boolean

Dim instance As New SPWorkflowCollection(web, inclusiveFilterStates, _
    exclusiveFilterStates, rowCountLimit, _
    descending)
public SPWorkflowCollection(
    SPWeb web,
    SPWorkflowState inclusiveFilterStates,
    SPWorkflowState exclusiveFilterStates,
    int rowCountLimit,
    bool descending
)

Parameters

  • rowCountLimit
    Type: System.Int32

    The maximum size of this collection that is allowed.

  • descending
    Type: System.Boolean

    true to set the order of the items in this collection to descending based on the Created property; otherwise, false.

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 is 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