将 TimeSpan 值转换为相对时间值。
Namespace:System.Reactive.Concurrency
装配: System.Reactive.dll) 中的 System.Reactive (
语法
'Declaration
Protected MustOverride Function ToRelative ( _
timeSpan As TimeSpan _
) As TRelative
'Usage
Dim timeSpan As TimeSpan
Dim returnValue As TRelative
returnValue = Me.ToRelative(timeSpan)
protected abstract TRelative ToRelative(
TimeSpan timeSpan
)
protected:
virtual TRelative ToRelative(
TimeSpan timeSpan
) abstract
abstract ToRelative :
timeSpan:TimeSpan -> 'TRelative
protected abstract function ToRelative(
timeSpan : TimeSpan
) : TRelative
参数
- timeSpan
类型: System.TimeSpan
要转换的 TimeSpan 值。
返回值
类型: TRelative
相应的相对时间值。