다음을 통해 공유


Qbservable.Buffer<TSource> 메서드(IQbservable<TSource>, TimeSpan, Int32)

쿼리 가능한 관찰 가능한 시퀀스의 각 요소를 버퍼로 나타내며, 버퍼가 가득 차거나 지정된 시간이 경과할 때 전송됩니다.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Buffer(Of TSource) ( _
    source As IQbservable(Of TSource), _
    timeSpan As TimeSpan, _
    count As Integer _
) As IQbservable(Of IList(Of TSource))
'Usage
Dim source As IQbservable(Of TSource)
Dim timeSpan As TimeSpan
Dim count As Integer
Dim returnValue As IQbservable(Of IList(Of TSource))

returnValue = source.Buffer(timeSpan, _
    count)
public static IQbservable<IList<TSource>> Buffer<TSource>(
    this IQbservable<TSource> source,
    TimeSpan timeSpan,
    int count
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<IList<TSource>^>^ Buffer(
    IQbservable<TSource>^ source, 
    TimeSpan timeSpan, 
    int count
)
static member Buffer : 
        source:IQbservable<'TSource> * 
        timeSpan:TimeSpan * 
        count:int -> IQbservable<IList<'TSource>> 
JScript does not support generic types and methods.

형식 매개 변수

  • TSource
    형식 원본

매개 변수

  • 개수
    형식: System.Int32
    창의 최대 요소 수입니다.

반환 값

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

사용 정보

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

참고 항목

참조

Qbservable 클래스

버퍼 오버로드

System.Reactive.Linq 네임스페이스