Copies the specified file into the specified folder.
Namespace: DotNetNuke.Services.FileSystemAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public virtual IFileInfo CopyFile( IFileInfo file, IFolderInfo destinationFolder ) |
| Visual Basic |
|---|
Public Overridable 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.Implements
IFileManager..::..CopyFile(IFileInfo, IFolderInfo)
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Thrown when file or destinationFolder are null. |