Share via


StorageItemQueryResult.GetItemCountAsync Method

Definition

Retrieves the number of items in the set of query results.

public:
 virtual IAsyncOperation<unsigned int> ^ GetItemCountAsync() = GetItemCountAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<uint32_t> GetItemCountAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<uint> GetItemCountAsync();
function getItemCountAsync()
Public Function GetItemCountAsync () As IAsyncOperation(Of UInteger)

Returns

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation<unsigned int>

IAsyncOperation<uint32_t>

When this method completes successfully, it returns the number of items in the location that match the query.

Implements

Attributes

Remarks

This method throws an exception when the library definition targeted by the query is empty.

Applies to

See also