Bagikan melalui


Observable.When<TResult> Method (IEnumerable<Plan<TResult>>)

Joins together the results from several patterns.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function When(Of TResult) ( _
    plans As IEnumerable(Of Plan(Of TResult)) _
) As IObservable(Of TResult)
'Usage
Dim plans As IEnumerable(Of Plan(Of TResult))
Dim returnValue As IObservable(Of TResult)

returnValue = plans.When()
public static IObservable<TResult> When<TResult>(
    this IEnumerable<Plan<TResult>> plans
)
[ExtensionAttribute]
public:
generic<typename TResult>
static IObservable<TResult>^ When(
    IEnumerable<Plan<TResult>^>^ plans
)
static member When : 
        plans:IEnumerable<Plan<'TResult>> -> IObservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.

Parameters

Return Value

Type: System.IObservable<TResult>
The results from several patterns.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<Plan<TResult>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also

Reference

Observable Class

When Overload

System.Reactive.Linq Namespace