TransferManager.UploadAsync Method (Stream, CloudFile, UploadOptions, SingleTransferContext)

 

Updated: January 5, 2017

Upload a file to Azure File Storage.

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

public static Task UploadAsync(
	Stream sourceStream,
	CloudFile destFile,
	UploadOptions options,
	SingleTransferContext context
)

Parameters

sourceStream
Type: System.IO.Stream

A Stream object providing the file content.

destFile
Type: Microsoft.WindowsAzure.Storage.File.CloudFile

The CloudFile that is the destination Azure file.

options
Type: Microsoft.WindowsAzure.Storage.DataMovement.UploadOptions

An UploadOptions object that specifies additional options for the operation.

context
Type: Microsoft.WindowsAzure.Storage.DataMovement.SingleTransferContext

A SingleTransferContext object that represents the context for the current operation.

Return Value

Type: System.Threading.Tasks.Task

A Task object that represents the asynchronous operation.

Return to top
Show: