GetWorkflowTemplatesByCategory Method

SPWorkflowManager.GetWorkflowTemplatesByCategory Method

Returns a collection of the workflow templates belonging to the specified category.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public SPWorkflowTemplateCollection GetWorkflowTemplatesByCategory(
	SPWeb web,
	string strReqCategs


Type: Microsoft.SharePoint.SPWeb

The SharePoint site for which you want to return workflow templates.

Type: System.String

The category of workflow templates you want.

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflowTemplateCollection
A SPWorkflowTemplateCollection object that represents the collection of workflow templates.

This method gets the workflow templates of the category specified by the strReqCategs parameter on the website specified by the web parameter.

© 2016 Microsoft