Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Qbservable.Buffer<TSource, TBufferOpening, TBufferClosing> Method (IQbservable<TSource>, IObservable<TBufferOpening>, Expression<Func<TBufferOpening, IObservable<TBufferClosing>>>)

Indicates each element of a queryable observable sequence into consecutive non-overlapping buffers.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive.Providers (in System.Reactive.Providers.dll)
public static IQbservable<IList<TSource>> Buffer<TSource, TBufferOpening, TBufferClosing>(
	this IQbservable<TSource> source,
	IObservable<TBufferOpening> bufferOpenings,
	Expression<Func<TBufferOpening, IObservable<TBufferClosing>>> bufferClosingSelector

Type Parameters


The type of source.


The type of queryable observable sequence whose elements denote the opening of each produced buffer.


The type of queryable observable sequence whose elements denote the closing of each produced buffer.


Type: System.Reactive.Linq.IQbservable<TSource>
The source sequence to produce buffers over.
Type: System.IObservable<TBufferOpening>
The queryable observable sequence whose elements denote the creation of new buffers.
Type: System.Linq.Expressions.Expression<Func<TBufferOpening, IObservable<TBufferClosing>>>
The function invoked to define the closing of each produced buffer.

Return Value

Type: System.Reactive.Linq.IQbservable<IList<TSource>>
The queryable observable sequence of buffers.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see http://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or http://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.