Skip to main content

TryGetWellKnownFolderAsync Method

Attempts to read folder from the file-system by its path

Definition

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

Task<IStorageFolder?> TryGetWellKnownFolderAsync(
WellKnownFolder wellKnownFolder
)
View Source

Parameters

  WellKnownFolder
Well known folder identifier.

Return Value

Task(IStorageFolder)
Folder or null if it doesn't exist.

See Also

Reference

IStorageProvider Interface
Avalonia.Platform.Storage Namespace