Move Method

The Move method moves the associated item to the specified location.

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

[Visual Basic]

Parameters
  • bstrDestURL
    String that contains 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
    BSTR that contains the absolute URL of the destination.
Return Values

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

Remarks

After calling the Move method, the calling object continues to point to the original location. The application must rebind the calling object to the new location to perform any further operations on it. Move overwrites any previously existing object of the same name without prompting for confirmation.