Partager via


WorkflowTemplateCollection.GetById - Méthode

Returns a workflow template based on Id.

Espace de noms :  Microsoft.SharePoint.Client.Workflow
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Function GetById ( _
    templateId As Guid _
) As WorkflowTemplate
'Utilisation
Dim instance As WorkflowTemplateCollection
Dim templateId As Guid
Dim returnValue As WorkflowTemplate

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

Paramètres

  • templateId
    Type : System.Guid

    The name of the workflow template to retrieve.

Valeur renvoyée

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

Remarques

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 une référence Null (Rien dans Visual Basic).

Voir aussi

Référence

WorkflowTemplateCollection classe

WorkflowTemplateCollection - Membres

Microsoft.SharePoint.Client.Workflow - Espace de noms