DownloadOperation.Pause Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin