Share via


LocatorBaseCollection.CreateLocatorAsync Method (LocatorType, IAsset, IAccessPolicy)

Creates the locator async.

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

Syntax

'Declaration
Public Function CreateLocatorAsync ( _
    locatorType As LocatorType, _
    asset As IAsset, _
    accessPolicy As IAccessPolicy _
) As Task(Of ILocator)
'Usage
Dim instance As LocatorBaseCollection 
Dim locatorType As LocatorType 
Dim asset As IAsset 
Dim accessPolicy As IAccessPolicy 
Dim returnValue As Task(Of ILocator)

returnValue = instance.CreateLocatorAsync(locatorType, _
    asset, accessPolicy)
public Task<ILocator> CreateLocatorAsync(
    LocatorType locatorType,
    IAsset asset,
    IAccessPolicy accessPolicy
)
public:
Task<ILocator^>^ CreateLocatorAsync(
    LocatorType locatorType, 
    IAsset^ asset, 
    IAccessPolicy^ accessPolicy
)
member CreateLocatorAsync : 
        locatorType:LocatorType * 
        asset:IAsset * 
        accessPolicy:IAccessPolicy -> Task<ILocator> 
public function CreateLocatorAsync(
    locatorType : LocatorType, 
    asset : IAsset, 
    accessPolicy : IAccessPolicy
) : Task<ILocator>

Parameters

Return Value

Type: System.Threading.Tasks.Task<ILocator>
A function delegate that returns the future result to be available through the Task&lt;ILocator&gt;.

See Also

Reference

LocatorBaseCollection Class

CreateLocatorAsync Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace