Storage Client Library for Windows Phone (Version 7.0)

Microsoft Windows Azure Storage Blob

Initiates an asynchronous operation to download the contents of a blob to a file.

Namespace:   Microsoft.WindowsAzure.Storage.Blob
Assembly:  Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Syntax

 
Task DownloadToFileAsync(
	string path,
	FileMode mode,
	CancellationToken cancellationToken
)
 
Task^ DownloadToFileAsync(
	String^ path,
	FileMode mode,
	CancellationToken cancellationToken
)
 
abstract DownloadToFileAsync : 
        path:string *
        mode:FileMode *
        cancellationToken:CancellationToken -> Task
 
Function DownloadToFileAsync (
	path As String,
	mode As FileMode,
	cancellationToken As CancellationToken
) As Task

Parameters

path
Type: System.StringSystem::String^System.StringSystem.String

A string containing the path to the target file.

mode
Type: System.IO.FileModeSystem.IO::FileModeSystem.IO.FileModeSystem.IO.FileMode

A FileMode enumeration value that determines how to open or create the file.

cancellationToken
Type: System.Threading.CancellationTokenSystem.Threading::CancellationTokenSystem.Threading.CancellationTokenSystem.Threading.CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Return to top