Share via


WorkflowDeploymentService.DeprecateDefinition method

Marks a workflow definition as deprecated. Currently running workflow instances are allowed to complete, but new instances of the workflow definition are prevented from starting.

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

Syntax

'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Sub DeprecateDefinition ( _
    definitionId As Guid _
)
'Usage
Dim instance As WorkflowDeploymentService
Dim definitionId As Guid

instance.DeprecateDefinition(definitionId)
[ClientCallableMethodAttribute]
public abstract void DeprecateDefinition(
    Guid definitionId
)

Parameters

  • definitionId
    Type: System.Guid

    The guid identifier of the workflow definition.

See also

Reference

WorkflowDeploymentService class

WorkflowDeploymentService members

Microsoft.SharePoint.WorkflowServices namespace