Share via


FileInformationFactory.GetFoldersAsync 方法

定义

重载

GetFoldersAsync()

检索 FolderInformation 对象的集合,这些对象包含有关集合中所有 StorageFolder 对象的信息。

GetFoldersAsync(UInt32, UInt32)

检索 FolderInformation 对象的集合,这些对象包含有关集合中 一系列 StorageFolder 对象的信息。

GetFoldersAsync()

检索 FolderInformation 对象的集合,这些对象包含有关集合中所有 StorageFolder 对象的信息。

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

返回

此方法成功完成后,它将返回 folderInformation 对象的类型 IVectorView) (列表。

属性

另请参阅

适用于

GetFoldersAsync(UInt32, UInt32)

检索 FolderInformation 对象的集合,这些对象包含有关集合中 一系列 StorageFolder 对象的信息。

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

参数

startIndex
UInt32

unsigned int

uint32_t

范围中第一个 StorageFolder 的从零开始的索引。

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

要检索其信息的最大 StorageFolder 对象数。

返回

此方法成功完成后,它将返回 folderInformation 对象的类型 IVectorView) (列表。

属性

另请参阅

适用于