IAssetFile.UploadAsync Method
Uploads the file with given path asynchronously.
Namespace: Microsoft.WindowsAzure.MediaServices.Client
Assembly: Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)
Syntax
'Declaration
Function UploadAsync ( _
path As String, _
blobTransferClient As BlobTransferClient, _
locator As ILocator, _
token As CancellationToken _
) As Task
'Usage
Dim instance As IAssetFile
Dim path As String
Dim blobTransferClient As BlobTransferClient
Dim locator As ILocator
Dim token As CancellationToken
Dim returnValue As Task
returnValue = instance.UploadAsync(path, _
blobTransferClient, locator, token)
Task UploadAsync(
string path,
BlobTransferClient blobTransferClient,
ILocator locator,
CancellationToken token
)
Task^ UploadAsync(
String^ path,
BlobTransferClient^ blobTransferClient,
ILocator^ locator,
CancellationToken token
)
abstract UploadAsync :
path:string *
blobTransferClient:BlobTransferClient *
locator:ILocator *
token:CancellationToken -> Task
function UploadAsync(
path : String,
blobTransferClient : BlobTransferClient,
locator : ILocator,
token : CancellationToken
) : Task
Parameters
- path
Type: System.String
The path of a file to upload.
- blobTransferClient
Type: Microsoft.WindowsAzure.MediaServices.Client.BlobTransferClient
The BlobTransferClient which is used to upload files.
- locator
Type: Microsoft.WindowsAzure.MediaServices.Client.ILocator
An asset ILocator, which defines the URL upload path for the file.
- token
Type: System.Threading.CancellationToken
A CancellationToken to use for canceling the upload operation.
Return Value
Type: System.Threading.Tasks.Task
Returns Task that contains the future result of the method call.