Export (0) Print
Expand All

SPListItem.Copy method (String, String)

Copies the specified version of the item to the specified destination.

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

public static void Copy(
	string sourceUrl,
	string destinationUrl
)

Parameters

sourceUrl
Type: System.String

The source URL of the item to copy.

destinationUrl
Type: System.String

The destination URL of the item.

NoteNote

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

sourceUrl or destinationUrl is null or empty.

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

Show:
© 2014 Microsoft