Skip to main content
All docs
V23.2

AsyncDownloadPolicy.ThrowAlways() Method

Throws an exception when a control initiates a download.

Namespace: DevExpress.Data

Assembly: DevExpress.Data.v23.2.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