WorkflowDeploymentService.EnumerateDefinitions method

Retrieves workflow definitions from the workflow store that match the tags.

Namespace:  Microsoft.SharePoint.WorkflowServices
Assembly:  Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)

Syntax

'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Function EnumerateDefinitions ( _
    publishedOnly As Boolean _
) As WorkflowDefinitionCollection
'Usage
Dim instance As WorkflowDeploymentService
Dim publishedOnly As Boolean
Dim returnValue As WorkflowDefinitionCollection

returnValue = instance.EnumerateDefinitions(publishedOnly)
[ClientCallableMethodAttribute]
public abstract WorkflowDefinitionCollection EnumerateDefinitions(
    bool publishedOnly
)

Parameters

  • publishedOnly
    Type: System.Boolean

    True if only published workflow should be returned.

Return value

Type: Microsoft.SharePoint.WorkflowServices.WorkflowDefinitionCollection
Returns a dictionary populated with key/value pairs of workflow definition IDs and workflow names.

See also

Reference

WorkflowDeploymentService class

WorkflowDeploymentService members

Microsoft.SharePoint.WorkflowServices namespace