SPWorkflowTaskCollection.Delete method
Deletes the specified workflow task.
Namespace: Microsoft.SharePoint.Workflow
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Delete ( _
iIndex As Integer _
)
'Usage
Dim instance As SPWorkflowTaskCollection
Dim iIndex As Integer
instance.Delete(iIndex)
public void Delete(
int iIndex
)
Parameters
iIndex
Type: System.Int32The index of the workflow task in the collection.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | iIndex is less than 0. |
Remarks
This method deletes the workflow task at the index specified by the iIndex parameter from the collection.
See also
Reference
SPWorkflowTaskCollection class