다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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 SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation