Observable.Buffer<TSource> メソッド (IObservable<TSource>、TimeSpan、Int32)
監視可能なシーケンスの各要素をバッファーに示します。バッファーが満杯になった場合、または特定の時間が経過した場合に送信されます。
Namespace:System.Reactive.Linq
アセンブリ: System.Reactive (System.Reactive.dll)
構文
'Declaration
<ExtensionAttribute> _
Public Shared Function Buffer(Of TSource) ( _
source As IObservable(Of TSource), _
timeSpan As TimeSpan, _
count As Integer _
) As IObservable(Of IList(Of TSource))
'Usage
Dim source As IObservable(Of TSource)
Dim timeSpan As TimeSpan
Dim count As Integer
Dim returnValue As IObservable(Of IList(Of TSource))
returnValue = source.Buffer(timeSpan, _
count)
public static IObservable<IList<TSource>> Buffer<TSource>(
this IObservable<TSource> source,
TimeSpan timeSpan,
int count
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IObservable<IList<TSource>^>^ Buffer(
IObservable<TSource>^ source,
TimeSpan timeSpan,
int count
)
static member Buffer :
source:IObservable<'TSource> *
timeSpan:TimeSpan *
count:int -> IObservable<IList<'TSource>>
JScript does not support generic types and methods.
型パラメーター
- TSource
型ソース
パラメーター
- source
種類: System.IObservable<TSource>
バッファーを生成するソース シーケンス。
- timeSpan
種類: System.TimeSpan
ウィンドウの最大時間長。
- count
種類: System.Int32
ウィンドウの最大要素数。
戻り値
種類: System.IObservable<IList<TSource>>
バッファーの監視可能なシーケンス。
使用上の注意
Visual Basic および C# では、 IObservable<TSource> 型の任意のオブジェクトでインスタンス メソッドとしてこのメソッドを呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。