ImmutableList<T>.IndexOf 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| IndexOf(T) |
지정된 개체를 검색하고 변경할 수 없는 전체 목록 내에서 첫 번째 항목의 인덱스(0부터 시작)를 반환합니다. |
| IndexOf(T, Int32, Int32, IEqualityComparer<T>) |
지정한 개체를 검색하고 지정된 인덱스에서 시작하여 지정된 개수의 요소를 포함하는 목록의 요소 범위 내에서 첫 번째 항목의 인덱스(0부터 시작)를 반환합니다. |
IndexOf(T)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
지정된 개체를 검색하고 변경할 수 없는 전체 목록 내에서 첫 번째 항목의 인덱스(0부터 시작)를 반환합니다.
public:
virtual int IndexOf(T value);
public int IndexOf(T value);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (value As T) As Integer
매개 변수
- value
- T
변경할 수 없는 목록에서 찾을 개체입니다. 참조 형식에 대한 값일 null 수 있습니다.
반품
변경할 수 없는 전체 목록 내에서 처음 발견되는 인덱스(있는 경우)의 value 인덱스(0부터 시작)이고, 그렇지 않으면 ?1입니다.
구현
적용 대상
IndexOf(T, Int32, Int32, IEqualityComparer<T>)
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
- Source:
- ImmutableList_1.cs
지정한 개체를 검색하고 지정된 인덱스에서 시작하여 지정된 개수의 요소를 포함하는 목록의 요소 범위 내에서 첫 번째 항목의 인덱스(0부터 시작)를 반환합니다.
public:
virtual int IndexOf(T item, int index, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf(T item, int index, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int IndexOf(T item, int index, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
abstract member IndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
override this.IndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function IndexOf (item As T, index As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer
매개 변수
- item
- T
목록에서 찾을 개체입니다. 참조 형식의 경우 값이 null일 수 있습니다.
- index
- Int32
검색의 시작 인덱스(0부터 시작)입니다. 0은 빈 목록에서 유효합니다.
- count
- Int32
검색할 섹션의 요소 수입니다.
- equalityComparer
- IEqualityComparer<T>
검색에 사용할 같음 비교자입니다.
반품
인덱스에서 시작하여 요소 개수(있는 경우)를 포함하는 목록의 요소 범위 내에서 항목의 첫 번째 항목이 처음 발견되는 인덱스(0부터 시작)입니다. 그렇지 않으면 -1입니다.