Partilhar via


Método HistoricalSchedulerBase.Add

Adiciona um tempo relativo a um valor de tempo absoluto.

Namespace:System.Reactive.Concurrency
Assembly: System.Reactive (em System.Reactive.dll)

Sintaxe

'Declaration
Protected Overrides Function Add ( _
    absolute As DateTimeOffset, _
    relative As TimeSpan _
) As DateTimeOffset
'Usage
Dim absolute As DateTimeOffset
Dim relative As TimeSpan
Dim returnValue As DateTimeOffset

returnValue = Me.Add(absolute, relative)
protected override DateTimeOffset Add(
    DateTimeOffset absolute,
    TimeSpan relative
)
protected:
virtual DateTimeOffset Add(
    DateTimeOffset absolute, 
    TimeSpan relative
) override
abstract Add : 
        absolute:DateTimeOffset * 
        relative:TimeSpan -> DateTimeOffset 
override Add : 
        absolute:DateTimeOffset * 
        relative:TimeSpan -> DateTimeOffset 
protected override function Add(
    absolute : DateTimeOffset, 
    relative : TimeSpan
) : DateTimeOffset

Parâmetros

  • relative
    Tipo: System.TimeSpan
    O valor de tempo relativo a ser adicionado.

Valor Retornado

Tipo: System.DateTimeOffset
O valor da soma de tempo absoluta resultante.

Consulte Também

Referência

Classe HistoricalSchedulerBase

System.Reactive.Concurrency Namespace