Share via


SPWorkflowTaskCollection.CopyTo method

Copies the workflow tasks to the specified SPWorkflowTask array, starting at index.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ArrayOfSPTypesParameter)> _
Public Sub CopyTo ( _
    array As SPWorkflowTask(), _
    index As Integer _
)
'Usage
Dim instance As SPWorkflowTaskCollection
Dim array As SPWorkflowTask()
Dim index As Integer

instance.CopyTo(array, index)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ArrayOfSPTypesParameter)]
public void CopyTo(
    SPWorkflowTask[] array,
    int index
)

Parameters

  • array
    Type: []

    A destination to which the collection of the workflow tasks are copied.

  • index
    Type: System.Int32

    The zero-based index in array at which copying begins.

Remarks

This method copies the collection of the workflow tasks to the specified SPWorkflowTask array, starting at a particular array index.

See also

Reference

SPWorkflowTaskCollection class

SPWorkflowTaskCollection members

Microsoft.SharePoint.Workflow namespace