Share via


AssetFileBaseCollection.CreateAsync Method

Creates the IAssetFile asynchronously.

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

Syntax

'Declaration
Public MustOverride Function CreateAsync ( _
    name As String, _
    cancellation As CancellationToken _
) As Task(Of IAssetFile)
'Usage
Dim instance As AssetFileBaseCollection 
Dim name As String 
Dim cancellation As CancellationToken 
Dim returnValue As Task(Of IAssetFile)

returnValue = instance.CreateAsync(name, _
    cancellation)
public abstract Task<IAssetFile> CreateAsync(
    string name,
    CancellationToken cancellation
)
public:
virtual Task<IAssetFile^>^ CreateAsync(
    String^ name, 
    CancellationToken cancellation
) abstract
abstract CreateAsync : 
        name:string * 
        cancellation:CancellationToken -> Task<IAssetFile> 
public abstract function CreateAsync(
    name : String, 
    cancellation : CancellationToken
) : Task<IAssetFile>

Parameters

Return Value

Type: System.Threading.Tasks.Task<IAssetFile>
Task of type IAssetFile.

See Also

Reference

AssetFileBaseCollection Class

Microsoft.WindowsAzure.MediaServices.Client Namespace