共用方式為


ReplaySubject < T > 建構函式 (Int32, IScheduler)

使用指定的緩衝區大小和排程器,初始化ReplaySubject < T >類別的新實例。

Namespace:System.Reactive.Subjects
裝配: System.Reactive.dll) 中的 System.Reactive (

語法

'Declaration
Public Sub New ( _
    bufferSize As Integer, _
    scheduler As IScheduler _
)
'Usage
Dim bufferSize As Integer
Dim scheduler As IScheduler

Dim instance As New ReplaySubject(bufferSize, _
    scheduler)
public ReplaySubject(
    int bufferSize,
    IScheduler scheduler
)
public:
ReplaySubject(
    int bufferSize, 
    IScheduler^ scheduler
)
new : 
        bufferSize:int * 
        scheduler:IScheduler -> ReplaySubject
public function ReplaySubject(
    bufferSize : int, 
    scheduler : IScheduler
)

參數

  • bufferSize
    類型: System.Int32
    重新執行緩衝區的專案計數上限。

另請參閱

參考

ReplaySubject < T > 類別

ReplaySubject < T > 多載

System.Reactive.Subjects 命名空間