TransferManagerUploadAsync Method (Stream, CloudBlob) |
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(
Stream sourceStream,
CloudBlob destBlob
)
Public Shared Function UploadAsync (
sourceStream As Stream,
destBlob As CloudBlob
) As Task
public:
static Task^ UploadAsync(
Stream^ sourceStream,
CloudBlob^ destBlob
)
static member UploadAsync :
sourceStream : Stream *
destBlob : CloudBlob -> Task
Parameters
- sourceStream
- Type: System.IOStream
A Stream object providing the file content. - destBlob
- Type: CloudBlob
The CloudBlob that is the destination Azure blob.
Return Value
Type:
TaskA
Task object that represents the asynchronous operation.
See Also