共用方式為


ListViewKeyToItemHandler 代理人

定義

表示將處理 SetRelativeScrollPositionAsync 方法回呼的非同步方法。

public delegate IAsyncOperation<Platform::Object ^> ^ ListViewKeyToItemHandler(Platform::String ^ key);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(654137429, 46384, 18056, 185, 240, 66, 130, 73, 23, 142, 248)]
class ListViewKeyToItemHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(654137429, 46384, 18056, 185, 240, 66, 130, 73, 23, 142, 248)]
public delegate IAsyncOperation<object> ListViewKeyToItemHandler(string key);
Public Delegate Function ListViewKeyToItemHandler(key As String) As IAsyncOperation(Of Object) 

參數

key
String

Platform::String

winrt::hstring

ListView專案的索引鍵。

傳回值

IAsyncOperation<Object>

IAsyncOperation<Platform::Object>

IAsyncOperation<IInspectable>

在成功完成時,非同步作業會傳回指定索引鍵所代表的 ListView 專案。

屬性

Windows 需求

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

適用於

另請參閱