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
- startTime
Type: System.Nullable<DateTime>
The new start time for the origin locator.
- 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 |