Qbservable.ToList(Of TSource) Method

Creates a list from a queryable observable sequence.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive.Providers (in System.Reactive.Providers.dll)

<ExtensionAttribute> _
Public Shared Function ToList(Of TSource) ( _
	source As IQbservable(Of TSource) _
) As IQbservable(Of IList(Of TSource))
Dim source As IQbservable(Of TSource)
Dim returnValue As IQbservable(Of IList(Of TSource))

returnValue = source.ToList()

Type Parameters


The type of source.


Type: System.Reactive.Linq.IQbservable(Of TSource)
The source queryable observable sequence to get a list of elements for.

Return Value

Type: System.Reactive.Linq.IQbservable(Of IList(Of TSource))
A list from a queryable observable sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable(Of TSource). When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.