SPWebApplication.UserDefinedWorkflowsEnabled Property
Gets or sets a Boolean value specifying whether users can create workflows in the Web application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Property Value
Type: System.Booleantrue if users are allowed to create workflows; otherwise, false. The default value is true.