Share via


Launcher.LaunchFolderPathAsync メソッド

定義

オーバーロード

LaunchFolderPathAsync(String)

エクスプローラーを起動し、指定したフォルダーの内容を表示します。

LaunchFolderPathAsync(String, FolderLauncherOptions)

指定したオプションを使用してエクスプローラーを起動し、指定したフォルダーの内容を表示します。

LaunchFolderPathAsync(String)

エクスプローラーを起動し、指定したフォルダーの内容を表示します。

public:
 static IAsyncOperation<bool> ^ LaunchFolderPathAsync(Platform::String ^ path);
/// [Windows.Foundation.Metadata.Overload("LaunchFolderPathAsync")]
 static IAsyncOperation<bool> LaunchFolderPathAsync(winrt::hstring const& path);
[Windows.Foundation.Metadata.Overload("LaunchFolderPathAsync")]
public static IAsyncOperation<bool> LaunchFolderPathAsync(string path);
function launchFolderPathAsync(path)
Public Shared Function LaunchFolderPathAsync (path As String) As IAsyncOperation(Of Boolean)

パラメーター

path
String

Platform::String

winrt::hstring

開くフォルダーのファイルパス。

戻り値

操作の結果。

属性

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v7.0 で導入)

注釈

この API は、ASTA スレッド (UI スレッドとも呼ばれます) 内から呼び出す必要があります。 この API では、呼び出し元のアプリが起動中のフォルダーにアクセスできる必要はありません。 パスがフォルダーを指していない場合、またはユーザーがそのフォルダーにアクセスできない場合、この API は失敗します。

こちらもご覧ください

適用対象

LaunchFolderPathAsync(String, FolderLauncherOptions)

指定したオプションを使用してエクスプローラーを起動し、指定したフォルダーの内容を表示します。

public:
 static IAsyncOperation<bool> ^ LaunchFolderPathAsync(Platform::String ^ path, FolderLauncherOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("LaunchFolderPathWithOptionsAsync")]
 static IAsyncOperation<bool> LaunchFolderPathAsync(winrt::hstring const& path, FolderLauncherOptions const& options);
[Windows.Foundation.Metadata.Overload("LaunchFolderPathWithOptionsAsync")]
public static IAsyncOperation<bool> LaunchFolderPathAsync(string path, FolderLauncherOptions options);
function launchFolderPathAsync(path, options)
Public Shared Function LaunchFolderPathAsync (path As String, options As FolderLauncherOptions) As IAsyncOperation(Of Boolean)

パラメーター

path
String

Platform::String

winrt::hstring

開くフォルダーのファイルパス。

options
FolderLauncherOptions

エクスプローラーする画面領域の量と、指定したフォルダー内で選択する項目の一覧を指定するオプション。

戻り値

操作の結果。

属性

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v7.0 で導入)

注釈

この API は、ASTA スレッド (UI スレッドとも呼ばれます) 内から呼び出す必要があります。 この API では、呼び出し元のアプリが起動中のフォルダーにアクセスできる必要はありません。 パスがフォルダーを指していない場合、またはユーザーがそのフォルダーにアクセスできない場合、この API は失敗します。

こちらもご覧ください

適用対象