Qbservable.ToTSource> Method
Creates an array from a queryable observable sequence.
Namespace: System.Reactive.Linq
Assembly: System.Reactive.Providers (in System.Reactive.Providers.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ToArray(Of TSource) ( _
source As IQbservable(Of TSource) _
) As IQbservable(Of TSource())
'Usage
Dim source As IQbservable(Of TSource)
Dim returnValue As IQbservable(Of TSource())
returnValue = source.ToArray()
public static IQbservable<TSource[]> ToArray<TSource>(
this IQbservable<TSource> source
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<array<TSource>^>^ ToArray(
IQbservable<TSource>^ source
)
static member ToArray :
source:IQbservable<'TSource> -> IQbservable<'TSource[]>
JScript does not support generic types and methods.
Type Parameters
- TSource
The type of source.
Parameters
- source
Type: System.Reactive.Linq.IQbservable<TSource>
The source queryable observable sequence to get an array of elements for.
Return Value
Type: System.Reactive.Linq.IQbservable<TSource[]>
An array 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<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .