IFileInfo.DownloadToFileAsync Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Asynchronously downloads the represented file to the specified file path.

Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Usage

'Usage
Dim instance As IFileInfo
Dim file As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task

returnValue = instance.DownloadToFileAsync(file, cancellationToken)

Syntax

'Declaration
Function DownloadToFileAsync ( _
    file As String, _
    cancellationToken As CancellationToken _
) As Task
Task DownloadToFileAsync (
    string file,
    CancellationToken cancellationToken
)
Task^ DownloadToFileAsync (
    String^ file, 
    CancellationToken cancellationToken
)
Task DownloadToFileAsync (
    String file, 
    CancellationToken cancellationToken
)
function DownloadToFileAsync (
    file : String, 
    cancellationToken : CancellationToken
) : Task

Parameters

  • file
    The file name and path to download the file to.
  • cancellationToken
    The cancellation token.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows 7, Windows Server 2008, Windows 8 Beta

Target Platforms

See Also

Reference

IFileInfo Interface
IFileInfo Members
Microsoft.WindowsAzure.MediaServices.Client Namespace

Build Date:

2012-06-07