Back to Devexpress

AsyncDownloadPolicy.AsyncDownloaderCancelEventArgs.Uri Property

corelibraries-devexpress-dot-data-dot-asyncdownloadpolicy-dot-asyncdownloadercanceleventargs-6bec3228.md

latest2.1 KB
Original Source

AsyncDownloadPolicy.AsyncDownloaderCancelEventArgs.Uri Property

Gets the processed resource identifier.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public Uri Uri { get; }
vb
Public ReadOnly Property Uri As Uri

Property Value

TypeDescription
Uri

The resource identifier.

|

Remarks

csharp
void OnProbing(object sender, ProbingEventArgs e) {
    var shouldClose = XtraMessageBox.Show("Notification",
        "Probing the " + e.Uri.AbsoluteUri + " URL was detected. Close the connection?",
        MessageBoxButtons.YesNo);
    e.Cancel = (shouldClose == DialogResult.Yes) ? true : false;
}
vb
Private Sub OnProbing(ByVal sender As Object, ByVal e As ProbingEventArgs)
    Dim shouldClose = XtraMessageBox.Show("Notification", "Probing the " & e.Uri.AbsoluteUri & " URL was detected. Close the connection?", MessageBoxButtons.YesNo)
    e.Cancel = If((shouldClose = DialogResult.Yes), True, False)
End Sub

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

See Also

AsyncDownloadPolicy.AsyncDownloaderCancelEventArgs Class

AsyncDownloadPolicy.AsyncDownloaderCancelEventArgs Members

DevExpress.Data Namespace