## List::BinarySearch(const T\&) const method


Sıralı bir listede öğeyi arar.

```cpp
int System::Collections::Generic::List<T>::BinarySearch(const T &item) const
```


| Parameter | Type | Açıklama |
| --- | --- | --- |
| öğe | const T\& | Aranacak öğe. |

### ReturnValue

Sıralı listedeki öğenin indeksi veya en yakın indeksin tamamlayıcısı.

## Ayrıca Bakınız

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::BinarySearch(const T\&, const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\&) const method


Sıralı bir listede öğeyi arar.

```cpp
int System::Collections::Generic::List<T>::BinarySearch(const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
```


| Parameter | Type | Açıklama |
| --- | --- | --- |
| öğe | const T\& | Aranacak öğe. |
| comparer | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | [Comparer](../../comparer/) kullanmak için. |

### ReturnValue

Sıralı listedeki öğenin indeksi veya en yakın indeksin tamamlayıcısı.

## Ayrıca Bakınız

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IComparer](../../icomparer/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::BinarySearch(int, int, const T\&, const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\&) const method


Sıralı bir listede öğeyi arar.

```cpp
int System::Collections::Generic::List<T>::BinarySearch(int index, int count, const T &item, const SharedPtr<System::Collections::Generic::IComparer<T>> &comparer) const
```


| Parameter | Type | Açıklama |
| --- | --- | --- |
| indeks | int | Aralık başlangıcı. |
| count | int | Aralık boyutu. |
| öğe | const T\& | Aranacak öğe. |
| comparer | const SharedPtr\<System::Collections::Generic::IComparer\<T\>\>\& | [Comparer](../../comparer/) kullanmak için. |

### ReturnValue

Sıralı listedeki öğenin indeksi veya en yakın indeksin tamamlayıcısı.

## Ayrıca Bakınız

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IComparer](../../icomparer/)
* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
