SPWorkflowAssociationCollection.Add Method
Adds the specified workflow association to the collection.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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
workflowAssociation
Type: Microsoft.SharePoint.Workflow.SPWorkflowAssociationRepresents the association of a workflow template with a specific list or content type.
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