IBindableVector 介面

定義

表示可系結之物件的可寫入向量集合。

。網 此介面會顯示為 System.Collections.IList

public interface class IBindableVector : IBindableIterable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(960358366, 28624, 19469, 187, 113, 71, 36, 74, 17, 62, 147)]
struct IBindableVector : IBindableIterable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(960358366, 28624, 19469, 187, 113, 71, 36, 74, 17, 62, 147)]
public interface IList : IEnumerable
Public Interface IList
Implements IEnumerable
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

使用 .NET 進行程式設計時,此介面會隱藏,開發人員應該使用 System.Collections.IList 介面。

介面繼承

IBindableVector 繼承 IBindableIterable。 實作 IBindableVector 的類型也會針對 C++ 使用方式實作 IBindableIterable 的介面成員。

屬性

Size

取得向量中的專案數。

方法

Append(Object)

將專案附加至向量結尾。

Clear()

從向量移除所有專案。

GetAt(UInt32)

傳回向量中指定索引處的專案。

GetView()

傳回向量的不可變檢視。

IndexOf(Object, UInt32)

傳回向量中指定專案的索引。

InsertAt(UInt32, Object)

將專案插入指定索引處的向量。

RemoveAt(UInt32)

移除向量中指定索引處的專案。

RemoveAtEnd()

移除向量中的最後一個專案。

SetAt(UInt32, Object)

在向量的指定索引處設定專案值。

適用於

另請參閱