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)
- C#
- VB
- F#
Task<IStorageFile?> GetFileAsync(
string name
)
Function GetFileAsync (
name As String
) As Task(Of IStorageFile)
abstract GetFileAsync :
name : string -> Task<IStorageFile>
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