Share via


IListItemService.CopyListItem Method

Copies the specified list item to the specified list.

Namespace:  Microsoft.SharePoint.Workflow
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<CorrelationInitializerAttribute> _
Sub CopyListItem ( _
    id As Guid, _
    listId As Guid, _
    itemId As Integer, _
    toList As Guid, _
    overwrite As Boolean _
)
'Usage
Dim instance As IListItemService
Dim id As Guid
Dim listId As Guid
Dim itemId As Integer
Dim toList As Guid
Dim overwrite As Boolean

instance.CopyListItem(id, listId, itemId, _
    toList, overwrite)
[CorrelationInitializerAttribute]
void CopyListItem(
    Guid id,
    Guid listId,
    int itemId,
    Guid toList,
    bool overwrite
)

Parameters

  • listId
    Type: System.Guid

    The ID of the list on which the item currently resides.

  • toList
    Type: System.Guid

    The ID of the list to which to copy the item.

  • overwrite
    Type: System.Boolean

    True to overwrite the item as it already exists on the target list.

Remarks

This method is used by the CopyItemActivity class of the Microsoft.SharePoint.WorkflowActions namespace.

See Also

Reference

IListItemService Interface

IListItemService Members

Microsoft.SharePoint.Workflow Namespace