다음을 통해 공유


Qbservable.Buffer<TSource, TBufferClosing> 메서드(IQbservable<TSource>, Expression<Func<IObservable<TBufferClosing>>>)

쿼리 가능한 관찰 가능한 시퀀스의 각 요소를 연속된 겹치지 않는 버퍼로 나타냅니다.

네임스페이스:System.Reactive.Linq
어셈블리: System.Reactive.Providers(System.Reactive.Providers.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Buffer(Of TSource, TBufferClosing) ( _
    source As IQbservable(Of TSource), _
    bufferClosingSelector As Expression(Of Func(Of IObservable(Of TBufferClosing))) _
) As IQbservable(Of IList(Of TSource))
'Usage
Dim source As IQbservable(Of TSource)
Dim bufferClosingSelector As Expression(Of Func(Of IObservable(Of TBufferClosing)))
Dim returnValue As IQbservable(Of IList(Of TSource))

returnValue = source.Buffer(bufferClosingSelector)
public static IQbservable<IList<TSource>> Buffer<TSource, TBufferClosing>(
    this IQbservable<TSource> source,
    Expression<Func<IObservable<TBufferClosing>>> bufferClosingSelector
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TBufferClosing>
static IQbservable<IList<TSource>^>^ Buffer(
    IQbservable<TSource>^ source, 
    Expression<Func<IObservable<TBufferClosing>^>^>^ bufferClosingSelector
)
static member Buffer : 
        source:IQbservable<'TSource> * 
        bufferClosingSelector:Expression<Func<IObservable<'TBufferClosing>>> -> IQbservable<IList<'TSource>> 
JScript does not support generic types and methods.

형식 매개 변수

  • TSource
    원본의 형식입니다.
  • TBufferClosing
    요소가 생성된 각 버퍼의 닫기를 나타내는 쿼리 가능한 관찰 가능한 시퀀스의 형식입니다.

매개 변수

반환 값

형식: System.Reactive.Linq.IQbservable<IList<TSource>>
쿼리 가능한 버퍼 시퀀스입니다.

사용 정보

Visual Basic 및 C#에서는 IQbservableTSource> 형식의 모든 개체에서 이 메서드를 instance 메서드로 호출할 수 있습니다<. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 또는 를 참조하세요.

참고 항목

참조

Qbservable 클래스

버퍼 오버로드

System.Reactive.Linq 네임스페이스