次の方法で共有


Qbservable.TakeLast<TSource> メソッド

クエリ可能な監視可能シーケンスの末尾から、指定した数の連続する要素を返します。

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

構文

'Declaration
<ExtensionAttribute> _
Public Shared Function TakeLast(Of TSource) ( _
    source As IQbservable(Of TSource), _
    count As Integer _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim count As Integer
Dim returnValue As IQbservable(Of TSource)

returnValue = source.TakeLast(count)
public static IQbservable<TSource> TakeLast<TSource>(
    this IQbservable<TSource> source,
    int count
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ TakeLast(
    IQbservable<TSource>^ source, 
    int count
)
static member TakeLast : 
        source:IQbservable<'TSource> * 
        count:int -> IQbservable<'TSource> 
JScript does not support generic types and methods.

型パラメーター

  • TSource
    ソースの種類。

パラメーター

  • count
    種類: System.Int32
    ソース シーケンスの末尾から取得する要素の数。

戻り値

型: System.Reactive.Linq.IQbservable<TSource>
ソース シーケンスの から指定された数の要素を含む、クエリ可能な監視可能なシーケンス。

使用上の注意

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

参照

リファレンス

Qbservable クラス

System.Reactive.Linq 名前空間