SPFile.MoveTo method

Include protected members
Include inherited members

Moves the file to the specified destination URL.

Overload list

  Name Description
Public method MoveTo(String) Moves the file to the destination URL but does not overwrite an existing file of the same name.
Public method MoveTo(String, SPMoveOperations) Moves the file to the specified destination URL based on the type of operation that is specified.
Public method MoveTo(String, Boolean) Moves the file to the destination URL and optionally overwrites an existing file of the same name.
Public method MoveTo(String, SPMoveOperations, Boolean) Moves the file to the specified destination URL.

Top

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace