FileDataDownloader.DownloadCore(IFileData) Method
In This Article
Writes the file stored within the specified IFileData object to the response and ends the response.
Namespace: DevExpress.ExpressApp.FileAttachments.Web
Assembly: DevExpress.ExpressApp.FileAttachment.Web.v24.2.dll
NuGet Package: DevExpress.ExpressApp.FileAttachment.Web
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
file |
IFile |
An IFile |
#Remarks
To execute custom code when a file is downloaded, inherit the FileDataDownloader class and override the DownloadCore method.
public class MyDownloader : FileDataDownloader {
public override void DownloadCore(DevExpress.Persistent.Base.IFileData fileData) {
// Place your code here.
base.DownloadCore(fileData);
}
}
See Also