SPWorkflowCollection constructor (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.

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

Syntax

'Declaration
Public Sub New ( _
    list As SPList, _
    associationId As Guid _
)
'Usage
Dim list As SPList
Dim associationId As Guid

Dim instance As New SPWorkflowCollection(list, associationId)
public SPWorkflowCollection(
    SPList list,
    Guid associationId
)

Parameters

  • associationId
    Type: System.Guid

    A Guid that represents an Id of a workflow association. All workflows in this collection are created from this association.

Exceptions

Exception Condition
ArgumentNullException

The list parameter is null .

-or-

The associationId parameter is empty.

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