Export (0) Print
Expand All

SPWorkflowManager.CountWorkflowAssociations Method

Windows SharePoint Services 3

Returns the number of workflow associations, based on the specified workflow template, for the specified site collection.

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

public int CountWorkflowAssociations(
	SPWorkflowTemplate template,
	SPSite site
)

Parameters

template
Type: Microsoft.SharePoint.Workflow.SPWorkflowTemplate
The workflow template for which you want the number of associations for this site collection.
site
Type: Microsoft.SharePoint.SPSite
The site collection for which you want the number of workflow associations based on the workflow template.

Return Value

Type: System.Int32
An Integer that represents the number of workflow associations.

Community Additions

ADD
Show:
© 2014 Microsoft