Copies the file, chooses the new file name that is not already taken, passing the template name for the new file (used when creating new pages).

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

Syntax

C#
public static bool FreeFileCopy(
	string sourceFileName,
	string destFileName,
	string templateName
)
Visual Basic
Public Shared Function FreeFileCopy ( 
	sourceFileName As String,
	destFileName As String,
	templateName As String
) As Boolean
Visual C++
public:
static bool FreeFileCopy(
	String^ sourceFileName, 
	String^ destFileName, 
	String^ templateName
)
F#
static member FreeFileCopy : 
        sourceFileName : string * 
        destFileName : string * 
        templateName : string -> bool 

Parameters

sourceFileName
Type: System..::..String
Source file name
destFileName
Type: System..::..String
Destination file name
templateName
Type: System..::..String
Template name

Return Value

Type: Boolean
True if everything is ok, false otherwise

See Also