Copies the specified file into the specified folder.

Namespace: DotNetNuke.Services.FileSystem
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
IFileInfo CopyFile(
	IFileInfo file,
	IFolderInfo destinationFolder
)
Visual Basic
Function CopyFile ( 
	file As IFileInfo,
	destinationFolder As IFolderInfo
) As IFileInfo

Parameters

file
Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to copy.
destinationFolder
Type: DotNetNuke.Services.FileSystem..::..IFolderInfo
The folder where to copy the file to.

Return Value

A IFileInfo with the information of the copied file.

See Also