LiveDownloadOperation.StartAsync(CancellationToken, IProgress<LiveOperationProgress>) method
Starts an asynchronous download operation, with the specified CancellationToken and progress event handler.
Syntax
Task<LiveDownloadOperationResult> StartAsync(
CancellationToken cancellationToken,
IProgress<LiveOperationProgress> progressHandler
)
Function StartAsync(
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>An event handler to receive progress events for the download operation.
Return value
Type: Task<LiveDownloadOperationResult>
The LiveDownloadOperationResult object with the populated session and result.
Remarks
StartAsync supports all paths and methods in the REST API.
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 |