SPWorkflowTemplateCollection.GetTemplateByName method

Gets the workflow template based on its name.

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

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 .

Show: