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