Launcher.LaunchFolderPathForUserAsync Launcher.LaunchFolderPathForUserAsync Launcher.LaunchFolderPathForUserAsync Launcher.LaunchFolderPathForUserAsync Launcher.LaunchFolderPathForUserAsync Method

Definition

Overloads

LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String)

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

LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions)

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

LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String) LaunchFolderPathForUserAsync(User, String)

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

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

Parameters

user
User User User

The user context to pass to the launched app.

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

LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions) LaunchFolderPathForUserAsync(User, String, FolderLauncherOptions)

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

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

Parameters

user
User User User

The user context to pass to the launched app.

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