Windows Dev Center

Launcher.LaunchFileAsync | launchFileAsync methods

Starts the app associated with the specified file.

Overload list

MethodDescription
LaunchFileAsync(IStorageFile) Starts the default app associated with the specified file.
LaunchFileAsync(IStorageFile, LauncherOptions) Starts the default app associated with the specified file, using the specified options.

Remarks

This API must be called from within an ASTA thread (also known as a UI thread).

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.System
Windows::System [C++]

Metadata

Windows.winmd

See also

Samples
Association launching sample
Guidelines
Guidelines and checklist for file types and URIs
Tasks
How to launch the default app for a file
Reference
Launcher
LauncherOptions

 

 

Show:
© 2015 Microsoft