StorageFolder.CreateFileQuery() | createFileQuery() method

Applies to Windows and Windows Phone

Creates a query result object to filter and enumerate top-level files in the current folder.

Syntax

Public Function CreateFileQuery() As StorageFileQueryResult

Parameters

This method has no parameters.

Return value

Type: StorageFileQueryResult

A query result object to filter and enumerate the top-level files in the current folder.

Remarks

This method creates a query result object identical to query result created by calling CreateFileQuery(CommonFileQuery) and specifying the CommonFileQuery.DefaultQuery enumeration value.

You can also get a top-level list of files in the current folder asynchronously by calling one of the GetFilesAsync methods.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

StorageFolder
CreateFileQuery(CommonFileQuery)

 

 

Show:
© 2014 Microsoft