Share via


VirtualizingLayoutContext.GetItemAtCore(Int32) 方法

定義

在衍生類別中實作時,擷取位於指定索引之來源中的資料項目。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

protected:
 virtual Platform::Object ^ GetItemAtCore(int index) = GetItemAtCore;
IInspectable GetItemAtCore(int const& index);
protected virtual object GetItemAtCore(int index);
Protected Overridable Function GetItemAtCore (index As Integer) As Object

參數

index
Int32

int

要擷取的資料項目索引。

傳回

Object

Platform::Object

IInspectable

位於指定索引處的資料項目。

備註

此方法提供呼叫 GetItemAt 時的行為。

基底實作會擲回 NotImplementedException (winrt::hresult_not_implemented)

適用於