共用方式為


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 類型 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 類型 IVectorView) (清單。

屬性

另請參閱

適用於