Share via


DownloadOperation.Pause Method

Definition

Pauses a download operation.

public:
 virtual void Pause() = Pause;
void Pause();
public void Pause();
function pause()
Public Sub Pause ()

Remarks

Calling this method aborts the HTTP request, but preserves state for the download and for the partially downloaded response. This method fails when called for an operation that either: hasn't been started yet; is already paused; or that uses a POST request. To detect when the operation is fully paused, get the value of the Progress property, and then access the Status field of that value. When the operation is fully paused, the Status field's value will no longer be Running. This is important if you need to pause an operation and then change RequestedUri, because you can't make that change while the the Status field's value is Running.

Applies to

See also