Qbservable.DistinctUntilChanged<TSource, TKey> メソッド (IQbservable<TSource>, Expression<Func<TSource, TKey>>, IEqualityComparer<TKey>)

keySelector と比較子に従って、個別の連続する要素のみを含む、クエリ可能な監視可能なシーケンスを返します。

Namespace:System.Reactive.Linq
アセンブリ: System.Reactive.Providers (System.Reactive.Providers.dll)

構文

'Declaration
<ExtensionAttribute> _
Public Shared Function DistinctUntilChanged(Of TSource, TKey) ( _
    source As IQbservable(Of TSource), _
    keySelector As Expression(Of Func(Of TSource, TKey)), _
    comparer As IEqualityComparer(Of TKey) _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim keySelector As Expression(Of Func(Of TSource, TKey))
Dim comparer As IEqualityComparer(Of TKey)
Dim returnValue As IQbservable(Of TSource)

returnValue = source.DistinctUntilChanged(keySelector, _
    comparer)
public static IQbservable<TSource> DistinctUntilChanged<TSource, TKey>(
    this IQbservable<TSource> source,
    Expression<Func<TSource, TKey>> keySelector,
    IEqualityComparer<TKey> comparer
)
[ExtensionAttribute]
public:
generic<typename TSource, typename TKey>
static IQbservable<TSource>^ DistinctUntilChanged(
    IQbservable<TSource>^ source, 
    Expression<Func<TSource, TKey>^>^ keySelector, 
    IEqualityComparer<TKey>^ comparer
)
static member DistinctUntilChanged : 
        source:IQbservable<'TSource> * 
        keySelector:Expression<Func<'TSource, 'TKey>> * 
        comparer:IEqualityComparer<'TKey> -> IQbservable<'TSource> 
JScript does not support generic types and methods.

型パラメーター

  • TSource
    ソースの種類。
  • TKey
    キーの種類。

パラメーター

  • source
    型: System.Reactive.Linq.IQbservable<TSource>
    計算されたキー値に基づいて、個別の連続する要素を保持するクエリ可能な監視可能なシーケンス。

戻り値

型: System.Reactive.Linq.IQbservable<TSource>
ソース シーケンスの計算されたキー値に基づく個別の連続する要素のみを含む、クエリ可能な監視可能なシーケンス。

使用上の注意

Visual Basic および C# では、このメソッドを IQbservable<TSource> 型の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。

参照

リファレンス

Qbservable クラス

DistinctUntilChanged オーバーロード

System.Reactive.Linq 名前空間