Udostępnij za pośrednictwem


FolderInformation.GetFoldersAsync Method

Definition

Overloads

GetFoldersAsync()

Retrieves all child folders from the current folder.

GetFoldersAsync(CommonFolderQuery)

Retrieves child folders from the current folder based on a common folder query.

GetFoldersAsync(CommonFolderQuery, UInt32, UInt32)

Retrieves a range of child folders from the current folder based on a common folder query.

GetFoldersAsync()

Retrieves all child folders from the current folder.

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

Returns

When this method completes successfully, it returns the list (type IVectorView) of child folders. Each child folder in this list is represented by a StorageFolder object.

Implements

Attributes

See also

Applies to

GetFoldersAsync(CommonFolderQuery)

Retrieves child folders from the current folder based on a common folder query.

public:
 virtual IAsyncOperation<IVectorView<StorageFolder ^> ^> ^ GetFoldersAsync(CommonFolderQuery query) = GetFoldersAsync;
/// [Windows.Foundation.Metadata.Overload("GetFoldersAsyncOverloadDefaultStartAndCount")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<StorageFolder>> GetFoldersAsync(CommonFolderQuery const& query);
[Windows.Foundation.Metadata.Overload("GetFoldersAsyncOverloadDefaultStartAndCount")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query);
function getFoldersAsync(query)
Public Function GetFoldersAsync (query As CommonFolderQuery) As IAsyncOperation(Of IReadOnlyList(Of StorageFolder))

Parameters

query
CommonFolderQuery

The common folder query.

Returns

When this method completes successfully, it returns the list (type IVectorView) of child folders. Each child folder in this list is represented by a StorageFolder object.

Implements

Attributes

See also

Applies to

GetFoldersAsync(CommonFolderQuery, UInt32, UInt32)

Retrieves a range of child folders from the current folder based on a common folder query.

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

Parameters

query
CommonFolderQuery

The common folder query.

startIndex
UInt32

unsigned int

uint32_t

The zero-based index of the first child folder in the range.

maxItemsToRetrieve
UInt32

unsigned int

uint32_t

The maximum number of child folders to retrieve.

Returns

When this method completes successfully, it returns the list (type IVectorView) of child folders. Each child folder in this list is represented by a StorageFolder object.

Implements

M:Windows.Storage.Search.IStorageFolderQueryOperations.GetFoldersAsync(Windows.Storage.Search.CommonFolderQuery,System.UInt32,System.UInt32) M:Windows.Storage.Search.IStorageFolderQueryOperations.GetFoldersAsync(Windows.Storage.Search.CommonFolderQuery,unsigned int,unsigned int) M:Windows.Storage.Search.IStorageFolderQueryOperations.GetFoldersAsync(Windows.Storage.Search.CommonFolderQuery,uint32_t,uint32_t)
Attributes

See also

Applies to