Copies 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 CopyFile(
	string path,
	string newPath
)
Visual Basic
Public Overrides Function CopyFile ( 
	path As String,
	newPath As String
) As String
Visual C++
public:
virtual String^ CopyFile(
	String^ path, 
	String^ newPath
) override
F#
abstract CopyFile : 
        path : string * 
        newPath : string -> string 
override CopyFile : 
        path : string * 
        newPath : string -> string 

Parameters

path
Type: System..::..String
Source path.
newPath
Type: System..::..String
Distination path.

Return Value

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

See Also