SPListItem.CopyTo method
SharePoint 2013
Copies the item to the specified destination.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- destinationUrl
- Type: System.String
The URL of the destination to which to copy the item.
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.
Exception | Condition |
---|---|
ArgumentException | destinationUrl is null or empty. |
NotSupportedException | The SPListItem object has an external data source. |
Show: