Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Abort

Silverlight

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

downloaderObject.Abort()

Managed programming does not use Downloader. See WebClient.

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

Property name

Initial state

DownloadProgress (Downloader)

0

Status

0

StatusText

Empty string

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

// Cancel the download with a mouse click.
function onLeftMouseButtonUp(sender, eventArgs)
{
    // Cancel Downloader activity and restore state.
    downloader.abort();
}
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.