Qbservable.MostRecent<TSource> メソッド
クエリ可能な監視可能なシーケンス内の最新の値をサンプリングします。
Namespace:System.Reactive.Linq
アセンブリ: System.Reactive.Providers (System.Reactive.Providers.dll)
構文
'Declaration
<ExtensionAttribute> _
Public Shared Function MostRecent(Of TSource) ( _
source As IQbservable(Of TSource), _
initialValue As TSource _
) As IQueryable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim initialValue As TSource
Dim returnValue As IQueryable(Of TSource)
returnValue = source.MostRecent(initialValue)
public static IQueryable<TSource> MostRecent<TSource>(
this IQbservable<TSource> source,
TSource initialValue
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQueryable<TSource>^ MostRecent(
IQbservable<TSource>^ source,
TSource initialValue
)
static member MostRecent :
source:IQbservable<'TSource> *
initialValue:'TSource -> IQueryable<'TSource>
JScript does not support generic types and methods.
型パラメーター
- TSource
ソースの種類。
パラメーター
- source
型: System.Reactive.Linq.IQbservable<TSource>
クエリ可能な監視可能なソース シーケンス。
- initialValue
種類: TSource
要素がまだサンプリングされていない場合に列挙可能なシーケンスによって生成される初期値。
戻り値
型: System.Linq.IQueryable<TSource>
各イテレーションで最後にサンプリングされた要素を返す列挙可能なシーケンス。
使用上の注意
Visual Basic および C# では、このメソッドを IQbservable<TSource> 型の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。