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

 

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

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

Syntax

[DoesServiceRequestAttribute]
public void UploadFromFile(
    string path,
    FileMode mode,
    AccessCondition accessCondition = null,
    BlobRequestOptions options = null,
    OperationContext operationContext = null
)
<DoesServiceRequestAttribute>
Public Sub UploadFromFile (
    path As String,
    mode As FileMode,
    accessCondition As AccessCondition,
    options As BlobRequestOptions,
    operationContext As OperationContext
)

Parameters

  • path
    Type: System.String

    A string containing the file path providing the blob content.

Implements

ICloudBlob.UploadFromFile(String, FileMode, AccessCondition, BlobRequestOptions, OperationContext)

See Also

CloudBlockBlob Class
Microsoft.WindowsAzure.Storage.Blob Namespace

Return to top