Back to Devexpress

AsyncDownloadPolicy.ThrowAlways() Method

corelibraries-devexpress-dot-data-dot-asyncdownloadpolicy-e1832d91.md

latest1.5 KB
Original Source

AsyncDownloadPolicy.ThrowAlways() Method

Throws an exception when a control initiates a download.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public static void ThrowAlways()
vb
Public Shared Sub ThrowAlways

Remarks

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

csharp
static void Main() {
    DevExpress.Data.AsyncDownloadPolicy.ThrowAlways();  
    Application.Run(new Form1());  
}
vb
Shared Sub Main()
    DevExpress.Data.AsyncDownloadPolicy.ThrowAlways()
    Application.Run(New Form1())
End Sub

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

See Also

SuppressAll()

AsyncDownloadPolicy Class

AsyncDownloadPolicy Members

DevExpress.Data Namespace