VirtualTimeScheduler < TAbsolute、TRelative > 建構函式 (TAbsolute、IComparer < TAbsolute >)
建立新的虛擬時間排程器。
Namespace:System.Reactive.Concurrency
裝配: System.Reactive.dll) 中的 System.Reactive (
語法
'Declaration
Protected Sub New ( _
initialClock As TAbsolute, _
comparer As IComparer(Of TAbsolute) _
)
'Usage
Dim initialClock As TAbsolute
Dim comparer As IComparer(Of TAbsolute)
Dim instance As New VirtualTimeScheduler(initialClock, _
comparer)
protected VirtualTimeScheduler(
TAbsolute initialClock,
IComparer<TAbsolute> comparer
)
protected:
VirtualTimeScheduler(
TAbsolute initialClock,
IComparer<TAbsolute>^ comparer
)
new :
initialClock:'TAbsolute *
comparer:IComparer<'TAbsolute> -> VirtualTimeScheduler
protected function VirtualTimeScheduler(
initialClock : TAbsolute,
comparer : IComparer<TAbsolute>
)
參數
- initialClock
類型: TAbsolute
時鐘的初始值。
- 比較
類型:System.Collections.Generic.IComparer<TAbsolute>
比較子,根據絕對時間判斷事件因果關係。
另請參閱
參考
VirtualTimeScheduler < TAbsolute, TRelative > 類別