CloudFile.BeginUploadFromFile Method (String, FileMode, AccessCondition, FileRequestOptions, OperationContext, AsyncCallback, Object)

 

Begins an asynchronous operation to upload a file to the File service. If the file already exists on the service, it will be overwritten.

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

Syntax

[DoesServiceRequestAttribute]
public ICancellableAsyncResult BeginUploadFromFile(
    string path,
    FileMode mode,
    AccessCondition accessCondition,
    FileRequestOptions options,
    OperationContext operationContext,
    AsyncCallback callback,
    object state
)
<DoesServiceRequestAttribute>
Public Function BeginUploadFromFile (
    path As String,
    mode As FileMode,
    accessCondition As AccessCondition,
    options As FileRequestOptions,
    operationContext As OperationContext,
    callback As AsyncCallback,
    state As Object
) As ICancellableAsyncResult

Parameters

  • callback
    Type: System.AsyncCallback

    The callback delegate that will receive notification when the asynchronous operation completes.

  • state
    Type: System.Object

    A user-defined object that will be passed to the callback delegate.

Return Value

Type: Microsoft.WindowsAzure.Storage.ICancellableAsyncResult

An ICancellableAsyncResult that references the asynchronous operation.

See Also

BeginUploadFromFile Overload
CloudFile Class
Microsoft.WindowsAzure.Storage.File Namespace

Return to top