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