IStorageFolderQueryOperations.GetItemsAsync(UInt32, UInt32) メソッド

定義

指定した範囲内のファイル、フォルダー、ファイル グループなどのリスト アイテムを取得します (シャロー列挙)。

public:
 IAsyncOperation<IVectorView<IStorageItem ^> ^> ^ GetItemsAsync(unsigned int startIndex, unsigned int maxItemsToRetrieve);
/// [Windows.Foundation.Metadata.Overload("GetItemsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<IStorageItem>> GetItemsAsync(uint32_t const& startIndex, uint32_t const& maxItemsToRetrieve);
[Windows.Foundation.Metadata.Overload("GetItemsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync(uint startIndex, uint maxItemsToRetrieve);
function getItemsAsync(startIndex, maxItemsToRetrieve)
Public Function GetItemsAsync (startIndex As UInteger, maxItemsToRetrieve As UInteger) As IAsyncOperation(Of IReadOnlyList(Of IStorageItem))

パラメーター

startIndex
UInt32

unsigned int

uint32_t

範囲内の最初の項目の 0 から始まるインデックス。 このパラメーターの既定値は 0 です。

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

取得するアイテムの最大数。 すべての項目を取得するには、-1 を使用します。

戻り値

このメソッドが正常に完了すると、項目のリスト ( IVectorView 型) が返されます。 各項目は IStorageItem 型で、ファイル、フォルダー、またはファイル グループを表します。

この一覧では、ファイルは StorageFile オブジェクトで表され、フォルダーまたはファイル グループは StorageFolder オブジェクトで表されます。

属性

適用対象

こちらもご覧ください