Abort Method

Cancels the downloader request and resets properties to their initial state.

XAML
Cannot use methods in XAML.
Scripting
downloaderObject.Abort()

Remarks

The Abort method cancels the downloader request that has been executed by using the Send method of the Downloader object. In addition, the Abort method resets the following Downloader properties to their initial state:

Property name Initial state
DownloadProgress 0
Status 0
StatusText Empty string

Examples

The following JavaScript example shows how to invoke the Abort method:

JavaScript
// Cancel download on mouse click.
function onLeftMouseButtonUp(sender, eventArgs)
{
    // Cancel Downloader activity and restore state.
    downloader.abort();
}

Applies To

Downloader

See Also

Using the Downloader Object
Open
Send