0 out of 1 rated this helpful - Rate this topic

SPListItem.CopyTo method

Copies the item to the specified destination.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public void CopyTo(
	string destinationUrl
)

Parameters

destinationUrl
Type: System.String
The URL of the destination to which to copy the item.
Note Note

The destination URL must reside on the same server on which the code is running. This copy operation does not copy to URLs on remote servers.

ExceptionCondition
ArgumentException

destinationUrl is null or empty.

NotSupportedException

The SPListItem object has an external data source.

This method copies the current list item to the destination location specified by the destinationUrl parameter.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.