FolderInformation.GetFoldersAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes