Share via


Observable.And<TLeft, TRight> Method

Matches when both observable sequences have an available value.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function And(Of TLeft, TRight) ( _
    left As IObservable(Of TLeft), _
    right As IObservable(Of TRight) _
) As Pattern(Of TLeft, TRight)
'Usage
Dim left As IObservable(Of TLeft)
Dim right As IObservable(Of TRight)
Dim returnValue As Pattern(Of TLeft, TRight)

returnValue = left.And(right)
public static Pattern<TLeft, TRight> And<TLeft, TRight>(
    this IObservable<TLeft> left,
    IObservable<TRight> right
)
[ExtensionAttribute]
public:
generic<typename TLeft, typename TRight>
static Pattern<TLeft, TRight>^ And(
    IObservable<TLeft>^ left, 
    IObservable<TRight>^ right
)
static member And : 
        left:IObservable<'TLeft> * 
        right:IObservable<'TRight> -> Pattern<'TLeft, 'TRight> 
JScript does not support generic types and methods.

Type Parameters

  • TLeft
    The type of left.
  • TRight
    The type of right

Parameters

  • left
    Type: System.IObservable<TLeft>
    The left observable sequence have an available value.
  • right
    Type: System.IObservable<TRight>
    The right observable sequence have an available value.

Return Value

Type: System.Reactive.Joins.Pattern<TLeft, TRight>
The observable sequences have an available value.

Usage Note

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

See Also

Reference

Observable Class

System.Reactive.Linq Namespace