LaunchFileAsync Method
Starts the default app associated with the specified storage file or folder.
Definition
Namespace: Avalonia.Platform.Storage
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
Task<bool> LaunchFileAsync(
IStorageItem storageItem
)
Function LaunchFileAsync (
storageItem As IStorageItem
) As Task(Of Boolean)
abstract LaunchFileAsync :
storageItem : IStorageItem -> Task<bool>
Parameters
- IStorageItem
- The file or folder.
Return Value
Task(Boolean)
True, if launch operation was successful. False, if unsupported or failed.