IStorageQueryResultBase.FindStartIndexAsync(Object) 方法

定义

从与指定属性值最匹配的查询结果中检索文件的索引。 匹配的属性由 QueryOptions.SortOrder 列表的第一个 SortEntry 确定。

public:
 IAsyncOperation<unsigned int> ^ FindStartIndexAsync(Platform::Object ^ value);
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<uint32_t> FindStartIndexAsync(IInspectable const& value);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<uint> FindStartIndexAsync(object value);
function findStartIndexAsync(value)
Public Function FindStartIndexAsync (value As Object) As IAsyncOperation(Of UInteger)

参数

value
Object

Platform::Object

IInspectable

搜索查询结果时要匹配的属性值。

返回

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation

IAsyncOperation<uint32_t>

此方法成功完成后,它将返回查询结果中匹配项的索引。

属性

注解

可以将此索引与语义式缩放结合使用,以确定在用户选择语义缩放控件后应放大页面的位置。

适用于