This topic has not yet been rated - Rate this topic

SPWorkflowTemplateCollection.GetTemplateByName Method

Gets the workflow template based on its name.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPWorkflowTemplate GetTemplateByName(
	string name,
	CultureInfo cultureInfo
)

Parameters

name
Type: System.String
The name of the workflow template to return.
cultureInfo
Type: System.Globalization.CultureInfo

Return Value

Type: Microsoft.SharePoint.Workflow.SPWorkflowTemplate
An SPWorkflowTemplate object that represents the workflow template.

This method gets the workflow template with the name specified by the name parameter. If no such template exists, this method returns null.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ