Dela via


Launcher.LaunchFolderAsync Method

Definition

Overloads

LaunchFolderAsync(IStorageFolder)

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

LaunchFolderAsync(IStorageFolder, FolderLauncherOptions)

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

LaunchFolderAsync(IStorageFolder)

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

public:
 static IAsyncOperation<bool> ^ LaunchFolderAsync(IStorageFolder ^ folder);
/// [Windows.Foundation.Metadata.Overload("LaunchFolderAsync")]
 static IAsyncOperation<bool> LaunchFolderAsync(IStorageFolder const& folder);
[Windows.Foundation.Metadata.Overload("LaunchFolderAsync")]
public static IAsyncOperation<bool> LaunchFolderAsync(IStorageFolder folder);
function launchFolderAsync(folder)
Public Shared Function LaunchFolderAsync (folder As IStorageFolder) As IAsyncOperation(Of Boolean)

Parameters

folder
IStorageFolder

The folder to display in File Explorer.

Returns

The result of the operation.

Attributes

Remarks

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

See also

Applies to

LaunchFolderAsync(IStorageFolder, FolderLauncherOptions)

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

public:
 static IAsyncOperation<bool> ^ LaunchFolderAsync(IStorageFolder ^ folder, FolderLauncherOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("LaunchFolderWithOptionsAsync")]
 static IAsyncOperation<bool> LaunchFolderAsync(IStorageFolder const& folder, FolderLauncherOptions const& options);
[Windows.Foundation.Metadata.Overload("LaunchFolderWithOptionsAsync")]
public static IAsyncOperation<bool> LaunchFolderAsync(IStorageFolder folder, FolderLauncherOptions options);
function launchFolderAsync(folder, options)
Public Shared Function LaunchFolderAsync (folder As IStorageFolder, options As FolderLauncherOptions) As IAsyncOperation(Of Boolean)

Parameters

folder
IStorageFolder

The folder to display in File Explorer.

options
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

The result of the operation.

Attributes

Remarks

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

See also

Applies to