Skip to main content
All docs
V24.2

AsyncDownloadPolicy.ThrowAlways() Method

Throws an exception when a control initiates a download.

Namespace: DevExpress.Data

Assembly: DevExpress.Data.v24.2.dll

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