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
item
Type: Microsoft.SharePoint.SPListItemAn SPListItem object.
inclusiveFilterStates
Type: Microsoft.SharePoint.Workflow.SPWorkflowStateAn SPWorkflowState object. All workflows in this collection must have one of these states.
exclusiveFilterStates
Type: Microsoft.SharePoint.Workflow.SPWorkflowStateAn SPWorkflowState object. All workflows in this collection must not have any of these states.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The item parameter is null . |
See also
Reference
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