Click or drag to resize

TransferManagerUploadDirectoryAsync Method (String, CloudFileDirectory, UploadDirectoryOptions, DirectoryTransferContext, CancellationToken)

Upload a directory to Azure File 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<TransferStatus> UploadDirectoryAsync(
	string sourcePath,
	CloudFileDirectory destFileDir,
	UploadDirectoryOptions options,
	DirectoryTransferContext context,
	CancellationToken cancellationToken
)

Parameters

sourcePath
Type: SystemString
Path to the source directory
destFileDir
Type: CloudFileDirectory
The CloudFileDirectory that is the destination Azure file directory.
options
Type: Microsoft.Azure.Storage.DataMovementUploadDirectoryOptions
An UploadDirectoryOptions object that specifies additional options for the operation.
context
Type: Microsoft.Azure.Storage.DataMovementDirectoryTransferContext
A DirectoryTransferContext object that represents the context for the current operation.
cancellationToken
Type: System.ThreadingCancellationToken
A CancellationToken object to observe while waiting for a task to complete.

Return Value

Type: TaskTransferStatus
A TaskTResult object of type TransferStatus that represents the asynchronous operation.
See Also