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 中引入)

适用于

另请参阅