IList<TValue> 介面

定義

定義 STL/CLR 清單物件的介面。

generic <typename TValue>
public interface class IList : ICloneable, Microsoft::VisualC::StlClr::Generic::IBidirectionalContainer<TValue>, System::Collections::ICollection
public interface IList<TValue> : ICloneable, Microsoft.VisualC.StlClr.Generic.IBidirectionalContainer<TValue>, System.Collections.ICollection
type IList<'Value> = interface
    interface IBidirectionalContainer<'Value>
    interface ICloneable
    interface ICollection
    interface IEnumerable
Public Interface IList(Of TValue)
Implements IBidirectionalContainer(Of TValue), ICloneable, ICollection

類型參數

TValue

清單項目的型別。

實作

備註

某些方法 (特別是運算子) 會宣告參數的類型,但不會指定參數名稱。 這種參數稱為「未命名參數」(Unnamed Parameter)。 在這些方法的檔中, A_0 預留位置代表未命名的參數。

屬性

back_item

存取容器的最後一個項目。

Count

取得 ICollection 中所包含的項目數。

(繼承來源 ICollection)
front_item

存取容器的第一個項目。

IsSynchronized

取得值,這個值表示對 ICollection 的存取是否同步 (安全執行緒)。

(繼承來源 ICollection)
SyncRoot

取得可用以同步存取 ICollection 的物件。

(繼承來源 ICollection)

方法

assign(IEnumerable)

以指定列舉值所指定的序列取代受控制序列。

assign(IInputIterator<TValue>, IInputIterator<TValue>)

將受控制序列取代為 序列 [)_First,_Last

assign(Int32, TValue)

以指定數目的指定項目取代受控制序列。

back()

存取容器的最後一個項目。

begin(ContainerBidirectionalIterator<TValue>)

指定受控制序列的開頭。

clear()

移除容器中的所有項目。

Clone()

建立目前執行個體複本的新物件。

(繼承來源 ICloneable)
CopyTo(Array, Int32)

從特定的 ICollection 索引開始,將 Array 的項目複製到 Array

(繼承來源 ICollection)
empty()

測試容器是否沒有項目。

end(ContainerBidirectionalIterator<TValue>)

指定受控制序列的結尾。

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

移除指定之 Iterator 所指向之受控制序列的單一項目。

erase(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

移除範圍中受控制序列的專案 [_First_iter_Last_iter) 。

front()

存取容器的第一個項目。

get_generation()

取得基礎容器的目前變化層代 (Generation)。

(繼承來源 IBidirectionalContainer<TValue>)
GetEnumerator()

傳回逐一查看集合的列舉值。

(繼承來源 IEnumerable)
insert(ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>, TValue)

將指定值的項目插入容器。

insert(ContainerBidirectionalIterator<TValue>, IEnumerable)

將指定列舉值的項目插入容器。

insert(ContainerBidirectionalIterator<TValue>, IInputIterator<TValue>, IInputIterator<TValue>)

將序列 [_First, _Last) 插入容器中。

insert(ContainerBidirectionalIterator<TValue>, Int32, TValue)

將指定值的項目插入容器。

merge(IList<TValue>, BinaryDelegate<TValue,TValue,Boolean>)

合併兩個已排序的受控制序列。

pop_back()

從容器移除最後一個項目。

pop_front()

從容器移除第一個項目。

push_back(TValue)

將新的項目新增至容器結尾。

push_front(TValue)

將新項目新增至容器的開頭。

rbegin(ReverseBidirectionalIterator<TValue>)

指定反向受控制序列的開頭。

remove(TValue)

從容器移除具有指定值的項目。

remove_if(UnaryDelegate<TValue,Boolean>)

從容器移除通過指定測試的項目。

rend(ReverseBidirectionalIterator<TValue>)

指定反向受控制序列的結尾。

resize(Int32)

將容器中的項目數目變更為指定的大小。

resize(Int32, TValue)

將容器中的項目數目變更為指定的大小。 如果新的大小大於舊的大小,便會將指定的值附加至容器。

reverse()

反轉受控制序列的項目。

size()

計算容器中的項目數目。

sort(BinaryDelegate<TValue,TValue,Boolean>)

排序受控制序列。

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>)

將指定序列插入容器的指定位置之前。

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>)

_First 所指向之指定容器移除項目,並將它插入受控制序列中 _Where 所指向的項目之前。

splice(ContainerBidirectionalIterator<TValue>, IList<TValue>, ContainerBidirectionalIterator<TValue>, ContainerBidirectionalIterator<TValue>)

從指定容器移除項目的範圍 [_First, _Last),並將它插入至受控制序列中 _Where 所指向的項目之前。

swap(IList<TValue>)

交換兩個容器的內容。

unique(BinaryDelegate<TValue,TValue,Boolean>)

移除通過指定測試的相鄰項目。

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)

啟用查詢的平行化作業。

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryable

適用於