Skip to main content
All docs
V25.1
  • AsyncDownloadPolicy.ThrowAlways() Method

    Throws an exception when a control initiates a download.

    Namespace: DevExpress.Data

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