Condividi tramite


WorkflowTemplateCollection.GetById Method

Returns a workflow template based on Id.

Namespace:  Microsoft.SharePoint.Client.Workflow
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
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