SPWorkflowCollection Constructor (SPListItem)
Initializes a new instance of the SPWorkflowCollection class for all of the workflows on the SPListItem object.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Sub New ( _
item As SPListItem _
)
'Usage
Dim item As SPListItem
Dim instance As New SPWorkflowCollection(item)
public SPWorkflowCollection(
SPListItem item
)
Parameters
item
Type: Microsoft.SharePoint.SPListItemAn SPListItem object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The item parameter is null . |
See Also
Reference
Microsoft.SharePoint.Workflow Namespace
Other Resources
Workflows in SharePoint Foundation