WorkflowTemplateCollection.GetById method

Returns a workflow template based on Id.

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

Syntax

'Declaration
Public Function GetById ( _
    templateId As Guid _
) As WorkflowTemplate
'Usage
Dim instance As WorkflowTemplateCollection
Dim templateId As Guid
Dim returnValue As WorkflowTemplate

returnValue = instance.GetById(templateId)
public WorkflowTemplate GetById(
    Guid templateId
)

Parameters

  • templateId
    Type: System.Guid

    The name of the workflow template to retrieve.

Return value

Type: Microsoft.SharePoint.Client.Workflow.WorkflowTemplate
Returns a WorkflowTemplate.instance representing the return of a workflow template based on Id.

Remarks

It must return the WorkflowTemplate object with Name property equal to the name parameter, or null if no such WorkflowTemplate exists in the collection. All WorkflowTemplate objects in the collection must have a unique value for their Name property. It must not be a null reference (Nothing in Visual Basic).

See also

Reference

WorkflowTemplateCollection class

WorkflowTemplateCollection members

Microsoft.SharePoint.Client.Workflow namespace