Launcher.LaunchFolderPathAsync Launcher.LaunchFolderPathAsync Launcher.LaunchFolderPathAsync Launcher.LaunchFolderPathAsync Launcher.LaunchFolderPathAsync Method

Definition

Overloads

LaunchFolderPathAsync(String) LaunchFolderPathAsync(String) LaunchFolderPathAsync(String) LaunchFolderPathAsync(String) LaunchFolderPathAsync(String)

Launches File Explorer and displays the contents of the specified folder.

LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions)

Launches File Explorer with the specified options and displays the contents of the specified folder.

LaunchFolderPathAsync(String) LaunchFolderPathAsync(String) LaunchFolderPathAsync(String) LaunchFolderPathAsync(String) LaunchFolderPathAsync(String)

Launches File Explorer and displays the contents of the specified folder.

public : static IAsyncOperation<Platform::Boolean> LaunchFolderPathAsync(Platform::String path)
static IAsyncOperation<bool> LaunchFolderPathAsync(winrt::hstring path) const;
public static IAsyncOperation<bool> LaunchFolderPathAsync(String path)
Public Shared Function LaunchFolderPathAsync(path As String) As IAsyncOperation(Of bool)
Windows.System.Launcher.launchFolderPathAsync(path).done( /* Your success and error handlers */ );

Parameters

path
String String String

A filepath to the folder to open.

Returns

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Remarks

This API must be called from within an ASTA thread (also known as a UI thread). This API does not require the calling app to have access to the folder being launched. This API will fail if the path does not point to a folder, or the user does not have access to that folder.

See also

LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions) LaunchFolderPathAsync(String, FolderLauncherOptions)

Launches File Explorer with the specified options and displays the contents of the specified folder.

public : static IAsyncOperation<Platform::Boolean> LaunchFolderPathAsync(Platform::String path, FolderLauncherOptions options)
static IAsyncOperation<bool> LaunchFolderPathAsync(winrt::hstring path, FolderLauncherOptions options) const;
public static IAsyncOperation<bool> LaunchFolderPathAsync(String path, FolderLauncherOptions options)
Public Shared Function LaunchFolderPathAsync(path As String, options As FolderLauncherOptions) As IAsyncOperation(Of bool)
Windows.System.Launcher.launchFolderPathAsync(path, options).done( /* Your success and error handlers */ );

Parameters

path
String String String

A filepath to the folder to open.

options
FolderLauncherOptions FolderLauncherOptions FolderLauncherOptions

Options that specify the amount of screen space that File Explorer fills, and the list of items to select in the specified folder.

Returns

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Remarks

This API must be called from within an ASTA thread (also known as a UI thread). This API does not require the calling app to have access to the folder being launched. This API will fail if the path does not point to a folder, or the user does not have access to that folder.

See also