共用方式為


IStorageQueryResultBase.GetItemCountAsync 方法

定義

擷取符合建立 StorageFileQueryResultStorageFolderQueryResultStorageItemQueryResult 物件的查詢的專案數目。

public:
 IAsyncOperation<unsigned int> ^ 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)

傳回

IAsyncOperation<UInt32>

Windows.Foundation.IAsyncOperation

IAsyncOperation<uint32_t>

這個方法成功完成時,它會傳回符合查詢的專案數。

屬性

適用於