LiveDownloadOperation.AttachAsync(CancellationToken, IProgress<LiveOperationProgress>) method
Attach to the pending operation with a given CancellationToken and progress event handler, in order to let the operation run to the end and receive results.
Syntax
public Task<LiveDownloadOperationResult> AttachAsync(
CancellationToken cancellationToken,
IProgress<LiveOperationProgress> progressHandler
)
Public Function AttachAsync(
cancellationToken As CancellationToken,
progressHandler As IProgress<LiveOperationProgress>
) As Task<LiveDownloadOperationResult>
Parameters
cancellationToken
Type: CancellationTokenThe cancellation token that is used to provide notification that operations should be cancelled.
progressHandler
Type: IProgress<LiveOperationProgress>A collection of LiveOperationProgress updates for the operation.
Return value
Type: Task<LiveDownloadOperationResult>
The data returned by the API service for the get operation.
Remarks
This method should be invoked on operations you get from LiveConnectClient.GetCurrentBackgroundDownloadsAsync method call.
Requirements
Minimum supported client |
Windows 8.1 |
Minimum supported server |
None supported |
Minimum supported phone |
Windows Phone 8.1 |
Namespace |
Microsoft.Live |
Assembly |
Microsoft.Live.dll |