Moves a file.

Namespace: MonoSoftware.MonoX.FileSystem
Assembly: MonoX (in MonoX.dll) Version: 5.1.40.5065 (5.1.40.5065)

Syntax

C#
public override string MoveFile(
	string path,
	string newPath
)
Visual Basic
Public Overrides Function MoveFile ( 
	path As String,
	newPath As String
) As String
Visual C++
public:
virtual String^ MoveFile(
	String^ path, 
	String^ newPath
) override
F#
abstract MoveFile : 
        path : string * 
        newPath : string -> string 
override MoveFile : 
        path : string * 
        newPath : string -> string 

Parameters

path
Type: System..::..String
Old path.
newPath
Type: System..::..String
New path.

Return Value

Type: String
Empty string if operation was successful; error message if an error occured.

Implements

IFileContentProvider..::..MoveFile(String, String)

See Also