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

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

See also

LiveDownloadOperation