ContentIndexerQuery.GetAsync Method

Definition

Overloads

GetAsync()

Runs the query on the app's indexed content properties.

GetAsync(UInt32, UInt32)

Runs the query on the app's indexed content properties and returns the specified number of items from the specified start index in the results collection.

GetAsync()

Runs the query on the app's indexed content properties.

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))

Returns

When this method completes, it returns the query results, represented as a collection of IIndexableContent instances.

Attributes

See also

Applies to

GetAsync(UInt32, UInt32)

Runs the query on the app's indexed content properties and returns the specified number of items from the specified start index in the results collection.

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))

Parameters

startIndex
UInt32

unsigned int

uint32_t

The index of the first item to get from the results collection.

maxItems
UInt32

unsigned int

uint32_t

The maximum number of items to get.

Returns

When this method completes, it returns the query results, represented as a collection of IndexableContent instances.

Attributes

Remarks

Specifying startIndex and maxItems is useful for virtualization or paginated access of search results.

See also

Applies to