Share via


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)

Syntax

'Declaration
Public Function GetWorkflowTemplatesByCategory ( _
    web As SPWeb, _
    strReqCategs As String _
) As SPWorkflowTemplateCollection
'Usage
Dim instance As SPWorkflowManager
Dim web As SPWeb
Dim strReqCategs As String
Dim returnValue As SPWorkflowTemplateCollection

returnValue = instance.GetWorkflowTemplatesByCategory(web, _
    strReqCategs)
public SPWorkflowTemplateCollection GetWorkflowTemplatesByCategory(
    SPWeb web,
    string strReqCategs
)

Parameters

  • 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.

Remarks

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

See also

Reference

SPWorkflowManager class

SPWorkflowManager members

Microsoft.SharePoint.Workflow namespace

Other resources

Workflows in Windows SharePoint Services

Workflow Development for Windows SharePoint Services

Workflow Object Model in Windows SharePoint Services Overview