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