SALES: 1-800-867-1380

BlobTransferClient.UploadBlob Method (Uri, String, FileEncryption, CancellationToken, RetryPolicy)

Uploads file to a blob storage.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

public Task UploadBlob(
	Uri url,
	string localFile,
	FileEncryption fileEncryption,
	CancellationToken cancellationToken,
	RetryPolicy retryPolicy
)

Parameters

url
Type: System.Uri
The URL where file needs to be uploaded. If blob has private write permissions then appropriate SAS URL need to be passed.
localFile
Type: System.String
The full path of local file.
fileEncryption
Type: Microsoft.WindowsAzure.MediaServices.Client.FileEncryption
The file encryption if file needs to be stored encrypted. Pass null if no encryption required.
cancellationToken
Type: System.Threading.CancellationToken
The cancellation token.
retryPolicy
Type: RetryPolicy
The RetryPolicy delegate returns a ShouldRetry delegate, which can be used to implement a custom retry policy. RetryPolicies class can be used to get default policies.

Return Value

Type: System.Threading.Tasks.Task
A function delegate that returns the future result to be available through the Task.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft