SPWorkflowTemplateCollection.GetTemplateByBaseID Method
Gets the workflow template based on the template ID.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.GuidThe 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 SharePoint Foundation