Click to Rate and Give Feedback
MSDN
MSDN Library
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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker