ImmutableList.IndexOf メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| IndexOf<T>(IImmutableList<T>, T, Int32) |
指定したオブジェクトを検索し、指定したインデックスから最後の要素まで、変更できないリスト内の要素の範囲内で最初に出現する 0 から始まるインデックスを返します。 |
| IndexOf<T>(IImmutableList<T>, T, Int32, Int32) |
指定したオブジェクトを検索し、指定したインデックスから最後の要素まで、変更できないリスト内の要素の範囲内で最初に出現する 0 から始まるインデックスを返します。 |
| IndexOf<T>(IImmutableList<T>, T) |
指定したオブジェクトを検索し、リスト内で最初に見つかった位置の 0 から始まるインデックスを返します。 |
| IndexOf<T>(IImmutableList<T>, T, IEqualityComparer<T>) |
指定したオブジェクトを検索し、リスト内で最初に見つかった位置の 0 から始まるインデックスを返します。 |
IndexOf<T>(IImmutableList<T>, T, Int32)
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
指定したオブジェクトを検索し、指定したインデックスから最後の要素まで、変更できないリスト内の要素の範囲内で最初に出現する 0 から始まるインデックスを返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex);
public static int IndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T, startIndex As Integer) As Integer
型パラメーター
- T
リスト内の項目の種類。
パラメーター
- list
- IImmutableList<T>
検索するリスト。
- item
- T
不変リスト内で検索するオブジェクト。 参照型の場合、値は null にすることができます。
- startIndex
- Int32
検索の 0 から始まる開始インデックス。 空のリストでは 0 (ゼロ) が有効です。
返品
見つかった場合、インデックスから最後の要素まで拡張される不変リスト内の要素の範囲内で項目が最初に出現する 0 から始まるインデックス。それ以外の場合は -1。
適用対象
IndexOf<T>(IImmutableList<T>, T, Int32, Int32)
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
指定したオブジェクトを検索し、指定したインデックスから最後の要素まで、変更できないリスト内の要素の範囲内で最初に出現する 0 から始まるインデックスを返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, int startIndex, int count);
public static int IndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, int startIndex, int count);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * int * int -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T, startIndex As Integer, count As Integer) As Integer
型パラメーター
- T
リスト内の項目の種類。
パラメーター
- list
- IImmutableList<T>
検索するリスト。
- item
- T
不変リスト内で検索するオブジェクト。 参照型の場合、値は null にすることができます。
- startIndex
- Int32
検索の 0 から始まる開始インデックス。 空のリストでは 0 (ゼロ) が有効です。
- count
- Int32
検索するセクション内の要素の数。
返品
見つかった場合、インデックスから最後の要素まで拡張される不変リスト内の要素の範囲内で項目が最初に出現する 0 から始まるインデックス。それ以外の場合は -1。
適用対象
IndexOf<T>(IImmutableList<T>, T)
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
指定したオブジェクトを検索し、リスト内で最初に見つかった位置の 0 から始まるインデックスを返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item);
public static int IndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T) As Integer
型パラメーター
- T
リスト内の項目の種類。
パラメーター
- list
- IImmutableList<T>
検索するリスト。
- item
- T
リスト内で検索するオブジェクト。 参照型の場合、値は null にすることができます。
返品
インデックスから最後の要素まで拡張されるリスト内の要素の範囲内で最初に出現する項目の 0 から始まるインデックス (見つかった場合)。それ以外の場合は -1。
適用対象
IndexOf<T>(IImmutableList<T>, T, IEqualityComparer<T>)
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
- ソース:
- ImmutableList.cs
指定したオブジェクトを検索し、リスト内で最初に見つかった位置の 0 から始まるインデックスを返します。
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static int IndexOf(System::Collections::Immutable::IImmutableList<T> ^ list, T item, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public static int IndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public static int IndexOf<T>(this System.Collections.Immutable.IImmutableList<T> list, T item, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
static member IndexOf : System.Collections.Immutable.IImmutableList<'T> * 'T * System.Collections.Generic.IEqualityComparer<'T> -> int
<Extension()>
Public Function IndexOf(Of T) (list As IImmutableList(Of T), item As T, equalityComparer As IEqualityComparer(Of T)) As Integer
型パラメーター
- T
リスト内の項目の種類。
パラメーター
- list
- IImmutableList<T>
検索するリスト。
- item
- T
不変リスト内で検索するオブジェクト。 参照型の場合、値は null にすることができます。
- equalityComparer
- IEqualityComparer<T>
検索で使用する等価比較子。
返品
インデックスから最後の要素 (見つかった場合) に拡張される、変更できないリスト内の要素の範囲内で最初に出現する項目の 0 から始まるインデックス。それ以外の場合は -1。