Observable.BufferWithTime<TSource> 方法 (IObservable<TSource>, TimeSpan)

命名空间:  Microsoft.Phone.Reactive
程序集:  Microsoft.Phone.Reactive(在 Microsoft.Phone.Reactive.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function BufferWithTime(Of TSource) ( _
    source As IObservable(Of TSource), _
    timeSpan As TimeSpan _
) As IObservable(Of IList(Of TSource))
public static IObservable<IList<TSource>> BufferWithTime<TSource>(
    this IObservable<TSource> source,
    TimeSpan timeSpan
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IObservable<IList<TSource>^>^ BufferWithTime(
    IObservable<TSource>^ source, 
    TimeSpan timeSpan
)
static member BufferWithTime : 
        source:IObservable<'TSource> * 
        timeSpan:TimeSpan -> IObservable<IList<'TSource>> 

类型参数

  • TSource

参数

返回值

类型:System.IObservable<IList<TSource>>

使用说明

在 Visual Basic 和 C# 中,可以在 IObservable<TSource> 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅扩展方法 (Visual Basic)扩展方法(C# 编程指南)

版本信息

适用于 Windows Phone 应用的 .NET

受以下版本支持:Windows Phone 8、Silverlight 8.1

.NET Framework 安全性

请参阅

参考

Observable 类

BufferWithTime 重载

Microsoft.Phone.Reactive 命名空间