Share via


SP.Workflow.WorkflowAssociation.enabled Property

Applies to: SharePoint Foundation 2010

Gets or sets a value that specifies whether new workflow instances will be allowed for this workflow association

var value = SP.Workflow.WorkflowAssociation.get_enabled(); 
SP.Workflow.WorkflowAssociation.set_enabled(value);

Property Value

Type: Boolean

Applies To

SP.Workflow.WorkflowAssociation Class

Exceptions

  • [System.InvalidOperationException]
    The value is true and this workflow association is based on a non-declarative workflow template that has been deactivated. Error code: -1.

See Also

Reference

SP.Workflow.WorkflowAssociation Methods

SP.Workflow.WorkflowAssociation Properties

SP.Workflow Namespace