This documentation is archived and is not being maintained.

SPWorkflowManager.GetWorkflowTemplatesByCategory Method

Windows SharePoint Services 3

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

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

public SPWorkflowTemplateCollection GetWorkflowTemplatesByCategory(
	SPWeb web,
	string strReqCategs
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb
The SharePoint site for which you want to return workflow templates.
strReqCategs
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.
Show: