CloudPageBlob.UploadFromFile Method (String, FileMode, AccessCondition, BlobRequestOptions, OperationContext)

 

Uploads a file to a page blob. If the blob already exists, it will be overwritten.

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

[DoesServiceRequestAttribute]
public void UploadFromFile(
	string path,
	FileMode mode,
	AccessCondition accessCondition = null,
	BlobRequestOptions options = null,
	OperationContext operationContext = null
)

Parameters

path
Type: System.String

A string containing the file path providing the blob content.

mode
Type: System.IO.FileMode

A FileMode enumeration value that specifies how to open the file.

accessCondition
Type: Microsoft.WindowsAzure.Storage.AccessCondition

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

options
Type: Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions

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

operationContext
Type: Microsoft.WindowsAzure.Storage.OperationContext

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

Return to top
Show: