Skip to main content

GetFileAsync Method

Gets the file with the specified name from the current folder.

Definition​

Namespace: Avalonia.Platform.Storage
Assembly: Avalonia.Base (in Avalonia.Base.dll)

Task<IStorageFile?> GetFileAsync(
string name
)
View Source

Parameters​

  String
The name of the file to get

Return Value​

Task(IStorageFile)
When this method completes successfully, it returns the file with the specified name from the current folder.

See Also​

Reference​

IStorageFolder Interface
Avalonia.Platform.Storage Namespace