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
path
Type: System.StringThe file providing the content.
mode
Type: System.IO.FileModeA constant that determines how to open the file.
accessCondition
Type: Microsoft.WindowsAzure.Storage.AccessConditionAn AccessCondition object that represents the access conditions for the file.
options
Type: Microsoft.WindowsAzure.Storage.File.FileRequestOptionsA FileRequestOptions object that specifies additional options for the request.
operationContext
Type: Microsoft.WindowsAzure.Storage.OperationContextAn OperationContext object that represents the context for the current operation.
callback
Type: System.AsyncCallbackThe callback delegate that will receive notification when the asynchronous operation completes.
state
Type: System.ObjectA 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