SPSite.UserDefinedWorkflowsEnabled Property
SharePoint 2010
Gets or sets a Boolean value that indicates whether user-defined workflows are enabled.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online