Share via


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

Return Value

Type: System.Threading.Tasks.Task
Returns Task that contains the future result of the method call.

See Also

Reference

IAssetFile Interface

Microsoft.WindowsAzure.MediaServices.Client Namespace