Copy Method

The Copy method copies the object to a new location.

Sub Copy(bstrDestURL As String)[C++]
HRESULT Copy(BSTR bstrDestURL);

[Visual Basic]

Parameters
  • bstrDestURL
    String that specifies the absolute URL of the destination.
Return Values

None.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters
  • bstrDestURL
    [in] BSTR that specifies the absolute URL of the destination.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Remarks

The Copy method copies the object to the destination URL. The calling object continues to point to the original item, not the newly-created copy.