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
web
Type: Microsoft.SharePoint.SPWebThe SharePoint site for which you want to return workflow templates.
strReqCategs
Type: System.StringThe 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
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in SharePoint Foundation