Share via


ILocator.UpdateAsync Method (Nullable<DateTime>, DateTime)

Asynchronously updates the start time or 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 ( _
    startTime As Nullable(Of DateTime), _
    expiryTime As DateTime _
) As Task
'Usage
Dim instance As ILocator 
Dim startTime As Nullable(Of DateTime)
Dim expiryTime As DateTime 
Dim returnValue As Task 

returnValue = instance.UpdateAsync(startTime, _
    expiryTime)
Task UpdateAsync(
    Nullable<DateTime> startTime,
    DateTime expiryTime
)
Task^ UpdateAsync(
    Nullable<DateTime> startTime, 
    DateTime expiryTime
)
abstract UpdateAsync : 
        startTime:Nullable<DateTime> * 
        expiryTime:DateTime -> Task
function UpdateAsync(
    startTime : Nullable<DateTime>, 
    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&lt;ILocator&gt;.

Exceptions

Exception Condition
InvalidOperationException

locator

See Also

Reference

ILocator Interface

UpdateAsync Overload

Microsoft.WindowsAzure.MediaServices.Client Namespace