SALES: 1-800-867-1380

BlobTransferClient.DownloadBlob Method (Uri, String, FileEncryption, UInt64, CancellationToken, RetryPolicy)

Downloads the specified blob to the specified location.

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

public Task DownloadBlob(
	Uri uri,
	string localFile,
	FileEncryption fileEncryption,
	ulong initializationVector,
	CancellationToken cancellationToken,
	RetryPolicy retryPolicy
)

Parameters

uri
Type: System.Uri
The blob URL from which file needs to be downloaded. If blob has private read permissions then appropriate SAS URL need to be passed.
localFile
Type: System.String
The full path where file will be saved.
fileEncryption
Type: Microsoft.WindowsAzure.MediaServices.Client.FileEncryption
The file encryption if file has been encrypted. Pass null if no encryption has been used.
initializationVector
Type: System.UInt64
The initialization vector if encryption has been used.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.
retryPolicy
Type: RetryPolicy
The RetryPolicy delegate returns a ShouldRetry delegate, which can be used to implement a custom retry policy. RetryPolicies class can be used to get default policies.

Return Value

Type: System.Threading.Tasks.Task
A function delegate that returns the future result to be available through the Task.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft