Skip to main content
All docs
V24.1

AsyncDownloadPolicy.ThrowAlways() Method

Throws an exception when a control initiates a download.

Namespace: DevExpress.Data

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public static void ThrowAlways()

Remarks

Call the ThrowAlways method at application startup to apply a restrictive policy:

static void Main() {
    DevExpress.Data.AsyncDownloadPolicy.ThrowAlways();  
    Application.Run(new Form1());  
}

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

See Also