Share via


ILocator.UpdateAsync Method (DateTime)

Asynchronously updates the expiration time of an Origin locator.

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

Syntax

'Declaration
Function UpdateAsync ( _
    expiryTime As DateTime _
) As Task
'Usage
Dim instance As ILocator 
Dim expiryTime As DateTime 
Dim returnValue As Task 

returnValue = instance.UpdateAsync(expiryTime)
Task UpdateAsync(
    DateTime expiryTime
)
Task^ UpdateAsync(
    DateTime expiryTime
)
abstract UpdateAsync : 
        expiryTime:DateTime -> Task
function UpdateAsync(
    expiryTime : DateTime
) : Task

Parameters

  • expiryTime
    Type: System.DateTime
    The new expiration time for the origin locator.

Return Value

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

Exceptions

Exception Condition
InvalidOperationException

locator

See Also

Reference

ILocator Interface

UpdateAsync Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace