TransferManager.UploadAsync Method (Stream, CloudFile, UploadOptions, TransferContext)
Upload a file to Azure File Storage.
Namespace: Microsoft.WindowsAzure.Storage.DataMovement
Assembly: Microsoft.WindowsAzure.Storage.DataMovement (in Microsoft.WindowsAzure.Storage.DataMovement.dll)
Syntax
public static Task UploadAsync(
Stream sourceStream,
CloudFile destFile,
UploadOptions options,
TransferContext context
)
Parameters
sourceStream
Type: System.IO.StreamA Stream object providing the file content.
destFile
Type: Microsoft.WindowsAzure.Storage.File.CloudFileThe CloudFile that is the destination Azure file.
options
Type: Microsoft.WindowsAzure.Storage.DataMovement.UploadOptionsAn UploadOptions object that specifies additional options for the operation.
context
Type: Microsoft.WindowsAzure.Storage.DataMovement.TransferContextA TransferContext object that represents the context for the current operation.
Return Value
Type: System.Threading.Tasks.Task
A Task object that represents the asynchronous operation.
See Also
UploadAsync Overload
TransferManager Class
Microsoft.WindowsAzure.Storage.DataMovement Namespace
Return to top