ReplaySubject < T > 建構函式 (Int32、TimeSpan、IScheduler)
使用指定的緩衝區大小、視窗和排程器,初始化ReplaySubject < T >類別的新實例。
Namespace:System.Reactive.Subjects
裝配: System.Reactive.dll) 中的 System.Reactive (
語法
'Declaration
Public Sub New ( _
bufferSize As Integer, _
window As TimeSpan, _
scheduler As IScheduler _
)
'Usage
Dim bufferSize As Integer
Dim window As TimeSpan
Dim scheduler As IScheduler
Dim instance As New ReplaySubject(bufferSize, _
window, scheduler)
public ReplaySubject(
int bufferSize,
TimeSpan window,
IScheduler scheduler
)
public:
ReplaySubject(
int bufferSize,
TimeSpan window,
IScheduler^ scheduler
)
new :
bufferSize:int *
window:TimeSpan *
scheduler:IScheduler -> ReplaySubject
public function ReplaySubject(
bufferSize : int,
window : TimeSpan,
scheduler : IScheduler
)
參數
- bufferSize
類型: System.Int32
重新執行緩衝區的專案計數上限。
- 時間範圍
類型: System.TimeSpan
重新執行緩衝區的時間長度上限。
- scheduler
類型: System.Reactive.Concurrency.IScheduler
觀察者會叫用排程器。