SPWorkflow Class
Represents a workflow instance that has run or is currently running on a site.
Namespace:
Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online