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

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 SharePoint Foundation

Workflow Development for SharePoint Foundation

Workflow Object Model Overview in SharePoint Foundation