SPWorkflowAssociationCollection.Add method

Adds the specified workflow association to the collection.

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

Syntax

'Declaration
Public MustOverride Function Add ( _
    workflowAssociation As SPWorkflowAssociation _
) As SPWorkflowAssociation
'Usage
Dim instance As SPWorkflowAssociationCollection
Dim workflowAssociation As SPWorkflowAssociation
Dim returnValue As SPWorkflowAssociation

returnValue = instance.Add(workflowAssociation)
public abstract SPWorkflowAssociation Add(
    SPWorkflowAssociation workflowAssociation
)

Parameters

Return value

Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
Returns a SPWorkflowAssociation object that represents the added workflow association, or null .

Remarks

This method adds the workflow association specified by workflowAssociation parameter to the collection.

See also

Reference

SPWorkflowAssociationCollection class

SPWorkflowAssociationCollection members

Microsoft.SharePoint.Workflow namespace