CloudBlob.DownloadToFile(String, FileMode, AccessCondition, BlobRequestOptions, OperationContext) CloudBlob.DownloadToFile(String, FileMode, AccessCondition, BlobRequestOptions, OperationContext) Method

Definition

Downloads the contents of a blob to a file.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual void DownloadToFile (string path, System.IO.FileMode mode, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition = null, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null);
abstract member DownloadToFile : string * System.IO.FileMode * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
override this.DownloadToFile : string * System.IO.FileMode * Microsoft.WindowsAzure.Storage.AccessCondition * Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions * Microsoft.WindowsAzure.Storage.OperationContext -> unit
Parameters
path
String String

A string containing the path to the target file.

mode
FileMode FileMode

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

accessCondition
AccessCondition AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed.

options
BlobRequestOptions BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext OperationContext

An OperationContext object that represents the context for the current operation.

Applies to