Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
id
Type: System.GuidReserved for internal use.
listId
Type: System.GuidThe ID of the list on which the item currently resides.
itemId
Type: System.Int32The ID of the item.
toList
Type: System.GuidThe ID of the list to which to copy the item.
overwrite
Type: System.BooleanTrue 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.