IsolatedWindowsEnvironment.LaunchFileWithUIAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LaunchFileWithUIAsync(String, String, String) |
已取代。 允許應用程式在隔離的 Windows 環境中開啟檔案。 |
LaunchFileWithUIAsync(String, String, String, IsolatedWindowsEnvironmentTelemetryParameters) |
已取代。 允許應用程式使用遙測相互關聯,在隔離的 Windows 環境中開啟檔案。 |
LaunchFileWithUIAsync(String, String, String)
已取代。 允許應用程式在隔離的 Windows 環境中開啟檔案。
public:
virtual IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult ^> ^ LaunchFileWithUIAsync(Platform::String ^ appExePath, Platform::String ^ argumentsTemplate, Platform::String ^ filePath) = LaunchFileWithUIAsync;
/// [Windows.Foundation.Metadata.Overload("LaunchFileWithUIAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(winrt::hstring const& appExePath, winrt::hstring const& argumentsTemplate, winrt::hstring const& filePath);
/// [Windows.Foundation.Metadata.Overload("LaunchFileWithUIAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(winrt::hstring const& appExePath, winrt::hstring const& argumentsTemplate, winrt::hstring const& filePath);
[Windows.Foundation.Metadata.Overload("LaunchFileWithUIAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(string appExePath, string argumentsTemplate, string filePath);
[Windows.Foundation.Metadata.Overload("LaunchFileWithUIAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
public IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(string appExePath, string argumentsTemplate, string filePath);
function launchFileWithUIAsync(appExePath, argumentsTemplate, filePath)
Public Function LaunchFileWithUIAsync (appExePath As String, argumentsTemplate As String, filePath As String) As IAsyncOperation(Of IsolatedWindowsEnvironmentLaunchFileResult)
參數
- appExePath
-
String
Platform::String
winrt::hstring
應用程式執行路徑的字串。
- argumentsTemplate
-
String
Platform::String
winrt::hstring
字串,用來指定要傳遞之其他自變數的 filepath 相對位置:“%1 /foo” 會將檔案啟動當做容器 %1 中的 “appname.exe fileapth /foo” 取代為 filepath “/foo %1” => “appname.exe /foo filepath” “/foo %1 /bar” => “appname.exe /foo filepath /bar”
- filePath
-
String
Platform::String
winrt::hstring
在隔離的 Windows 環境中開啟之檔案路徑的字串。
傳回
IsolatedWindowsEnvironmentLaunchFileResult
- 屬性
備註
警告
這是已被取代的 API。
適用於
LaunchFileWithUIAsync(String, String, String, IsolatedWindowsEnvironmentTelemetryParameters)
已取代。 允許應用程式使用遙測相互關聯,在隔離的 Windows 環境中開啟檔案。
public:
virtual IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult ^> ^ LaunchFileWithUIAsync(Platform::String ^ appExePath, Platform::String ^ argumentsTemplate, Platform::String ^ filePath, IsolatedWindowsEnvironmentTelemetryParameters ^ telemetryParameters) = LaunchFileWithUIAsync;
/// [Windows.Foundation.Metadata.Overload("LaunchFileWithUIAndTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(winrt::hstring const& appExePath, winrt::hstring const& argumentsTemplate, winrt::hstring const& filePath, IsolatedWindowsEnvironmentTelemetryParameters const& telemetryParameters);
/// [Windows.Foundation.Metadata.Overload("LaunchFileWithUIAndTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(winrt::hstring const& appExePath, winrt::hstring const& argumentsTemplate, winrt::hstring const& filePath, IsolatedWindowsEnvironmentTelemetryParameters const& telemetryParameters);
[Windows.Foundation.Metadata.Overload("LaunchFileWithUIAndTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(string appExePath, string argumentsTemplate, string filePath, IsolatedWindowsEnvironmentTelemetryParameters telemetryParameters);
[Windows.Foundation.Metadata.Overload("LaunchFileWithUIAndTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
public IAsyncOperation<IsolatedWindowsEnvironmentLaunchFileResult> LaunchFileWithUIAsync(string appExePath, string argumentsTemplate, string filePath, IsolatedWindowsEnvironmentTelemetryParameters telemetryParameters);
function launchFileWithUIAsync(appExePath, argumentsTemplate, filePath, telemetryParameters)
Public Function LaunchFileWithUIAsync (appExePath As String, argumentsTemplate As String, filePath As String, telemetryParameters As IsolatedWindowsEnvironmentTelemetryParameters) As IAsyncOperation(Of IsolatedWindowsEnvironmentLaunchFileResult)
參數
- appExePath
-
String
Platform::String
winrt::hstring
應用程式執行路徑的字串。
- argumentsTemplate
-
String
Platform::String
winrt::hstring
字串,用來指定要傳遞之其他自變數的 filepath 相對位置:“%1 /foo” 會將檔案啟動當做容器 %1 中的 “appname.exe fileapth /foo” 取代為 filepath “/foo %1” => “appname.exe /foo filepath” “/foo %1 /bar” => “appname.exe /foo filepath /bar”
- filePath
-
String
Platform::String
winrt::hstring
在隔離的 Windows 環境中開啟之檔案路徑的字串
- telemetryParameters
- IsolatedWindowsEnvironmentTelemetryParameters
傳回
IsolatedWindowsEnvironmentLaunchFileResult
- 屬性
備註
警告
這是已被取代的 API。