Share via


LocatorBaseCollection.CreateSasLocatorAsync Method (IAsset, IAccessPolicy, Nullable<DateTime>, String)

Asynchronously creates a SAS Locator with the specified access policy and asset.

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

Syntax

'Declaration
Public Function CreateSasLocatorAsync ( _
    asset As IAsset, _
    accessPolicy As IAccessPolicy, _
    startTime As Nullable(Of DateTime), _
    name As String _
) As Task(Of ILocator)
'Usage
Dim instance As LocatorBaseCollection 
Dim asset As IAsset 
Dim accessPolicy As IAccessPolicy 
Dim startTime As Nullable(Of DateTime)
Dim name As String 
Dim returnValue As Task(Of ILocator)

returnValue = instance.CreateSasLocatorAsync(asset, _
    accessPolicy, startTime, name)
public Task<ILocator> CreateSasLocatorAsync(
    IAsset asset,
    IAccessPolicy accessPolicy,
    Nullable<DateTime> startTime,
    string name
)
public:
Task<ILocator^>^ CreateSasLocatorAsync(
    IAsset^ asset, 
    IAccessPolicy^ accessPolicy, 
    Nullable<DateTime> startTime, 
    String^ name
)
member CreateSasLocatorAsync : 
        asset:IAsset * 
        accessPolicy:IAccessPolicy * 
        startTime:Nullable<DateTime> * 
        name:string -> Task<ILocator> 
public function CreateSasLocatorAsync(
    asset : IAsset, 
    accessPolicy : IAccessPolicy, 
    startTime : Nullable<DateTime>, 
    name : String
) : Task<ILocator>

Parameters

Return Value

Type: System.Threading.Tasks.Task<ILocator>
Returns Task<TResult>.

See Also

Reference

LocatorBaseCollection Class

CreateSasLocatorAsync Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace