ContentIndexerQuery.GetAsync 方法

定義

多載

GetAsync()

在應用程式的索引內容屬性上執行查詢。

GetAsync(UInt32, UInt32)

在應用程式的索引內容屬性上執行查詢,並從結果集合中指定的開始索引傳回指定的專案數。

GetAsync()

在應用程式的索引內容屬性上執行查詢。

public:
 virtual IAsyncOperation<IVectorView<IIndexableContent ^> ^> ^ GetAsync() = GetAsync;
/// [Windows.Foundation.Metadata.Overload("GetAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IIndexableContent>> GetAsync();
[Windows.Foundation.Metadata.Overload("GetAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IIndexableContent>> GetAsync();
function getAsync()
Public Function GetAsync () As IAsyncOperation(Of IReadOnlyList(Of IIndexableContent))

傳回

當此方法完成時,它會傳回查詢結果,以 IIndexableContent 實例的集合表示。

屬性

另請參閱

適用於

GetAsync(UInt32, UInt32)

在應用程式的索引內容屬性上執行查詢,並從結果集合中指定的開始索引傳回指定的專案數。

public:
 virtual IAsyncOperation<IVectorView<IIndexableContent ^> ^> ^ GetAsync(unsigned int startIndex, unsigned int maxItems) = GetAsync;
/// [Windows.Foundation.Metadata.Overload("GetRangeAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IIndexableContent>> GetAsync(uint32_t const& startIndex, uint32_t const& maxItems);
[Windows.Foundation.Metadata.Overload("GetRangeAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IIndexableContent>> GetAsync(uint startIndex, uint maxItems);
function getAsync(startIndex, maxItems)
Public Function GetAsync (startIndex As UInteger, maxItems As UInteger) As IAsyncOperation(Of IReadOnlyList(Of IIndexableContent))

參數

startIndex
UInt32

unsigned int

uint32_t

要從結果集合中取得之第一個專案的索引。

maxItems
UInt32

unsigned int

uint32_t

要取得的專案數目上限。

傳回

當這個方法完成時,它會傳回查詢結果,以 IndexableContent 實例的集合表示。

屬性

備註

指定 startIndexmaxItems 對於搜尋結果的虛擬化或編頁存取很有用。

另請參閱

適用於