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。