Downloads the specified file.
Namespace: DotNetNuke.Services.FileSystemAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
void WriteFileToResponse( IFileInfo file, ContentDisposition contentDisposition ) |
| Visual Basic |
|---|
Sub WriteFileToResponse ( file As IFileInfo, contentDisposition As ContentDisposition ) |
Parameters
- file
- Type: DotNetNuke.Services.FileSystem..::..IFileInfo
The file to download.
- contentDisposition
- Type: DotNetNuke.Services.FileSystem..::..ContentDisposition
Indicates how to display the document once downloaded.