Share via


SPWorkflowTemplateCollection.GetTemplateByBaseID method

Gets the workflow template based on the template ID.

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

Syntax

'Declaration
Public Function GetTemplateByBaseID ( _
    baseTemplateId As Guid _
) As SPWorkflowTemplate
'Usage
Dim instance As SPWorkflowTemplateCollection
Dim baseTemplateId As Guid
Dim returnValue As SPWorkflowTemplate

returnValue = instance.GetTemplateByBaseID(baseTemplateId)
public SPWorkflowTemplate GetTemplateByBaseID(
    Guid baseTemplateId
)

Parameters

  • baseTemplateId
    Type: System.Guid

    The ID of the workflow template to return.

Return value

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

Remarks

This method gets the workflow template with the ID specified by the baseTemplateId parameter.

See also

Reference

SPWorkflowTemplateCollection class

SPWorkflowTemplateCollection 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