.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

FileDataDownloader.SetDownloader(FileDataDownloader) Method

Specifies a file data downloader to be used by the File Attachments module to send files to the client in ASP.NET Web Forms XAF Applications.

Namespace: DevExpress.ExpressApp.FileAttachments.Web

Assembly: DevExpress.ExpressApp.FileAttachment.Web.v21.1.dll

Declaration

public static void SetDownloader(
    FileDataDownloader downloader
)

Parameters

Name Type Description
downloader FileDataDownloader

A FileDataDownloader object to be used to send files to the client.

Remarks

To register your FileDataDownloader descendant, call the static SetDownloader method in the Application_Start method that is located in the Global.asax.cs (Global.asax.vb) file:

using DevExpress.ExpressApp.FileAttachments.Web;
//...
protected void Application_Start(object sender, EventArgs e) {
    FileDataDownloader.SetDownloader(new MyDownloader());
//...
}
See Also