SPWorkflowFilter Class
Represents the filter criteria to apply to a workflow or workflow task collections, such as to whom the workflow is assigned, and the workflow state.
Namespace:
Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online