File.ListAsync 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 |
|---|---|
| ListAsync() |
Lists this directory's entry names in a task. |
| ListAsync(IFilenameFilter) |
Lists directory entry names selected by the filter in a task. |
ListAsync()
Lists this directory's entry names in a task.
public System.Threading.Tasks.Task<string[]?> ListAsync();
member this.ListAsync : unit -> System.Threading.Tasks.Task<string[]>
Returns
A task whose result contains the entry names, 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
ListAsync(IFilenameFilter)
Lists directory entry names selected by the filter in a task.
public System.Threading.Tasks.Task<string[]?> ListAsync(Java.IO.IFilenameFilter? filter);
member this.ListAsync : Java.IO.IFilenameFilter -> System.Threading.Tasks.Task<string[]>
Parameters
- filter
- IFilenameFilter
The name filter to apply. A null filter does not exclude any entries.
Returns
A task whose result contains the selected names, 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.