Scheduler.Normalize 方法

确保没有时间跨度为负值。

Namespace:System.Reactive.Concurrency
装配: System.Reactive.dll) 中的 System.Reactive (

语法

'Declaration
Public Shared Function Normalize ( _
    timeSpan As TimeSpan _
) As TimeSpan
'Usage
Dim timeSpan As TimeSpan
Dim returnValue As TimeSpan

returnValue = Scheduler.Normalize(timeSpan)
public static TimeSpan Normalize(
    TimeSpan timeSpan
)
public:
static TimeSpan Normalize(
    TimeSpan timeSpan
)
static member Normalize : 
        timeSpan:TimeSpan -> TimeSpan 
public static function Normalize(
    timeSpan : TimeSpan
) : TimeSpan

parameters

返回值

类型: System.TimeSpan
如果为零或正值,则为 TimeSpan.Zero 的时间跨度。

另请参阅

参考

Scheduler 类

System.Reactive.Concurrency 命名空间