SPWorkflowAssociationCollection.Add method
Adds the specified workflow association to the collection.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'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
)
workflowAssociation
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociationRepresents the association of a workflow template with a specific list or content type.
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociation
Returns a SPWorkflowAssociation object that represents the added workflow association, or null .
This method adds the workflow association specified by workflowAssociation parameter to the collection.
SPWorkflowAssociationCollection class