Skip to main content
All docs
V23.2

AsyncDownloadPolicy Class

Allows you to spot, analyze, and prohibit unwanted download requests.

Namespace: DevExpress.Data

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

public static class AsyncDownloadPolicy

Remarks

Certain DevExpress UI controls can download data over the internet. These requests can be initiated in your code or through the internal control engine. The AsyncDownloadPolicyallows you to apply global download restrictions, create a “safe” resource whitelist, or track user/app initiated downloads and execute custom actions in response.

Call one of the following methods at application startup to apply a restrictive policy:

static void Main() {
    DevExpress.Data.AsyncDownloadPolicy.SuppressAll();
    DevExpress.Data.AsyncDownloadPolicy.RegisterTrustedUri(new Uri("https://www.devexpress.com"));
    Application.Run(new Form1());  
}

Read the following topic for detailed information and examples: Suppress Control Requests to Download Data from External URLs.

Inheritance

Object
AsyncDownloadPolicy
See Also