SPWorkflowTemplate.GetStatusChoices Method
Returns a string collection of the possible status choices for this workflow template.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Function GetStatusChoices ( _
web As SPWeb _
) As StringCollection
'Usage
Dim instance As SPWorkflowTemplate
Dim web As SPWeb
Dim returnValue As StringCollection
returnValue = instance.GetStatusChoices(web)
public StringCollection GetStatusChoices(
SPWeb web
)
Parameters
web
Type: Microsoft.SharePoint.SPWebThe SharePoint 2010 site on which the workflow template is located.
Return Value
Type: System.Collections.Specialized.StringCollection
A StringCollection that represents the collection of status choices.
Remarks
This method gets the list of status choices for the website specified by the web parameter.
See Also
Reference
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in SharePoint Foundation