TransferManagerUploadAsync Method (String, CloudBlob, UploadOptions, SingleTransferContext) |
Upload a file to Azure Blob Storage.
Namespace:
Microsoft.Azure.Storage.DataMovement
Assembly:
Microsoft.Azure.Storage.DataMovement (in Microsoft.Azure.Storage.DataMovement.dll) Version: 2.0.1.0 (2.0.1.0)
Syntax public static Task UploadAsync(
string sourcePath,
CloudBlob destBlob,
UploadOptions options,
SingleTransferContext context
)
Public Shared Function UploadAsync (
sourcePath As String,
destBlob As CloudBlob,
options As UploadOptions,
context As SingleTransferContext
) As Task
public:
static Task^ UploadAsync(
String^ sourcePath,
CloudBlob^ destBlob,
UploadOptions^ options,
SingleTransferContext^ context
)
static member UploadAsync :
sourcePath : string *
destBlob : CloudBlob *
options : UploadOptions *
context : SingleTransferContext -> Task
Parameters
- sourcePath
- Type: SystemString
Path to the source file. - destBlob
- Type: CloudBlob
The CloudBlob that is the destination Azure blob. - options
- Type: Microsoft.Azure.Storage.DataMovementUploadOptions
An UploadOptions object that specifies additional options for the operation. - context
- Type: Microsoft.Azure.Storage.DataMovementSingleTransferContext
A SingleTransferContext object that represents the context for the current operation.
Return Value
Type:
TaskA
Task object that represents the asynchronous operation.
See Also