File.ListFilesAsync 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
| Name | Description |
|---|---|
| ListFilesAsync() |
Lists this directory's entries as file objects in a task. |
| ListFilesAsync(IFileFilter) |
Lists directory entries selected by the file filter in a task. |
| ListFilesAsync(IFilenameFilter) |
Lists directory entries selected by the name filter in a task. |
ListFilesAsync()
Lists this directory's entries as file objects in a task.
public System.Threading.Tasks.Task<Java.IO.File[]?> ListFilesAsync();
member this.ListFilesAsync : unit -> System.Threading.Tasks.Task<Java.IO.File[]>
Returns
A task whose result contains the file and directory objects, or null if the path is not a directory or an I/O error prevents listing it.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ListFilesAsync(IFileFilter)
Lists directory entries selected by the file filter in a task.
public System.Threading.Tasks.Task<Java.IO.File[]?> ListFilesAsync(Java.IO.IFileFilter? filter);
member this.ListFilesAsync : Java.IO.IFileFilter -> System.Threading.Tasks.Task<Java.IO.File[]>
Parameters
- filter
- IFileFilter
The filter applied to each file or directory object. A null filter does not exclude any entries.
Returns
A task whose result contains the selected file and directory objects, or null if the path is not a directory or an I/O error prevents listing it.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ListFilesAsync(IFilenameFilter)
Lists directory entries selected by the name filter in a task.
public System.Threading.Tasks.Task<Java.IO.File[]?> ListFilesAsync(Java.IO.IFilenameFilter? filter);
member this.ListFilesAsync : Java.IO.IFilenameFilter -> System.Threading.Tasks.Task<Java.IO.File[]>
Parameters
- filter
- IFilenameFilter
The filter applied to each directory entry name. A null filter does not exclude any entries.
Returns
A task whose result contains the selected file and directory objects, or null if the path is not a directory or an I/O error prevents listing it.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.