Skip to main content
.NET Framework 4.6.2+
  • The page you are viewing does not exist in the .NET 8.0+ platform documentation. This link will take you to the parent topic of the current section.

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

FileDataDownloader.DownloadCore(IFileData) Method

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

public virtual void DownloadCore(
    IFileData fileData
)

#Parameters

Name Type Description
fileData IFileData

An IFileData object that stores a file to download.

#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