SPFieldWorkflowStatus class
SharePoint 2013
Represents a workflow status field.
System.Object
Microsoft.SharePoint.SPField
Microsoft.SharePoint.SPFieldMultiChoice
Microsoft.SharePoint.SPFieldChoice
Microsoft.SharePoint.SPFieldWorkflowStatus
Microsoft.SharePoint.SPField
Microsoft.SharePoint.SPFieldMultiChoice
Microsoft.SharePoint.SPFieldChoice
Microsoft.SharePoint.SPFieldWorkflowStatus
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
This class represents a field of type SPFieldType.WorkflowStatus.
When you add a workflow association to a list or content type, a WorkflowStatus field is automatically added to the field collection. You can get an SPFieldWorkflowStatus object that represents the field by calling the GetField(String) method. This method requires a name string as an argument. Pass the value of the Name property of the SPWorkflowAssociation object that you added to the list or content type. The following example demonstrates the technique.
Show: