SPWorkflowCollection members

Represents a collection of workflow instances.

The SPWorkflowCollection type exposes the following members.

Constructors

  Name Description
Public method SPWorkflowCollection(SPList) Initializes a new instance of the SPWorkflowCollection class for all of the workflows running on SPListItem objects in this SPList object.
Public method SPWorkflowCollection(SPListItem) Initializes a new instance of the SPWorkflowCollection class for all of the workflows on the SPListItem object.
Public method SPWorkflowCollection(SPWeb) Initializes a new instance of the SPWorkflowCollection class for the site-based workflows on an SPWeb object.
Public method SPWorkflowCollection(SPList, Guid) Initializes a new instance of the SPWorkflowCollection class for all of the workflows that are based on a specific workflow association running on SPListItem objects in this SPList object.
Public method SPWorkflowCollection(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.
Public method SPWorkflowCollection(SPListItem, SPWorkflowState, SPWorkflowState, Int32, Boolean) 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.
Public method SPWorkflowCollection(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.

Top

Properties

  Name Description
Public property Count Gets the total number of workflow instances in the collection. (Overrides SPBaseCollection.Count.)
Public property ExclusiveFilterStates Gets the workflow state criteria that were used to exclude workflow instances from the collection results set.
Public property InclusiveFilterStates Gets the workflow state criteria that were used to include workflow instances in the collection results set.
Public property Item[Guid] Gets the specified workflow instance.
Public property Item[Int32] Gets the specified workflow instance.
Public property Xml Returns a string that represents the workflow instance collection in XML format.

Top

Methods

  Name Description
Public method CopyTo Copies the elements of the SPWorkflowCollection to a SPWorkflow array, starting at the specified array index.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetInstanceIds Gets a collection of the GUIDs for the workflow instances in the collection.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

See also

Reference

SPWorkflowCollection class

Microsoft.SharePoint.Workflow namespace