WorkflowAssociation.Enabled Property
Gets or sets a value that specifies whether new workflow instances will be allowed for this workflow association
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 Property Enabled As Boolean
Get
Set
'Usage
Dim instance As WorkflowAssociation
Dim value As Boolean
value = instance.Enabled
instance.Enabled = value
[RemoteAttribute]
public bool Enabled { get; set; }
Property Value
Type: System.Boolean
Returns Booleantrue if new workflow instance is allowed for this workflow association; otherwise, returns false. The default value is
Exceptions
Exception | Condition |
---|---|
[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. |