共用方式為


Qbservable.GroupJoin < TLeft, TRight, TLeftDuration, TRightDuration, TResult > 方法

根據重迭持續時間將兩個序列的專案相互關聯,並將結果分組。

Namespace:System.Reactive.Linq
裝配: System.Reactive.Providers.dll) 中的 System.Reactive.Providers (

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GroupJoin(Of TLeft, TRight, TLeftDuration, TRightDuration, TResult) ( _
    left As IQbservable(Of TLeft), _
    right As IObservable(Of TRight), _
    leftDurationSelector As Expression(Of Func(Of TLeft, IObservable(Of TLeftDuration))), _
    rightDurationSelector As Expression(Of Func(Of TRight, IObservable(Of TRightDuration))), _
    resultSelector As Expression(Of Func(Of TLeft, IObservable(Of TRight), TResult)) _
) As IQbservable(Of TResult)
'Usage
Dim left As IQbservable(Of TLeft)
Dim right As IObservable(Of TRight)
Dim leftDurationSelector As Expression(Of Func(Of TLeft, IObservable(Of TLeftDuration)))
Dim rightDurationSelector As Expression(Of Func(Of TRight, IObservable(Of TRightDuration)))
Dim resultSelector As Expression(Of Func(Of TLeft, IObservable(Of TRight), TResult))
Dim returnValue As IQbservable(Of TResult)

returnValue = left.GroupJoin(right, _
    leftDurationSelector, rightDurationSelector, _
    resultSelector)
public static IQbservable<TResult> GroupJoin<TLeft, TRight, TLeftDuration, TRightDuration, TResult>(
    this IQbservable<TLeft> left,
    IObservable<TRight> right,
    Expression<Func<TLeft, IObservable<TLeftDuration>>> leftDurationSelector,
    Expression<Func<TRight, IObservable<TRightDuration>>> rightDurationSelector,
    Expression<Func<TLeft, IObservable<TRight>, TResult>> resultSelector
)
[ExtensionAttribute]
public:
generic<typename TLeft, typename TRight, typename TLeftDuration, typename TRightDuration, typename TResult>
static IQbservable<TResult>^ GroupJoin(
    IQbservable<TLeft>^ left, 
    IObservable<TRight>^ right, 
    Expression<Func<TLeft, IObservable<TLeftDuration>^>^>^ leftDurationSelector, 
    Expression<Func<TRight, IObservable<TRightDuration>^>^>^ rightDurationSelector, 
    Expression<Func<TLeft, IObservable<TRight>^, TResult>^>^ resultSelector
)
static member GroupJoin : 
        left:IQbservable<'TLeft> * 
        right:IObservable<'TRight> * 
        leftDurationSelector:Expression<Func<'TLeft, IObservable<'TLeftDuration>>> * 
        rightDurationSelector:Expression<Func<'TRight, IObservable<'TRightDuration>>> * 
        resultSelector:Expression<Func<'TLeft, IObservable<'TRight>, 'TResult>> -> IQbservable<'TResult> 
JScript does not support generic types and methods.

類型參數

  • TLeft
    左的類型。
  • TRight
    右側的類型。
  • TLeftDuration
    左側持續時間的類型。
  • TRightDuration
    右側持續時間的類型。
  • TResult
    結果的類型。

參數

傳回值

類型:System.Reactive.Linq.IQbservable< TResult>
可查詢的可觀察序列,其中包含從具有重迭持續時間的來源元素計算的結果元素。

使用注意事項

在 Visual Basic 和 C# 中,您可以在IQbservable< TLeft > 類型的任何物件上呼叫這個方法作為實例方法。 使用執行個體方法語法呼叫這個方法時,請省略第一個參數。 如需詳細資訊,請參閱

另請參閱

參考

Qbservable 類別

System.Reactive.Linq 命名空間