FullTrustProcessLauncher.LaunchFullTrustProcessForAppWithArgumentsAsync 方法

定义

使用指定的命令行参数为指定的应用程序 ID 启动完全信任进程。

public:
 static IAsyncOperation<FullTrustProcessLaunchResult ^> ^ LaunchFullTrustProcessForAppWithArgumentsAsync(Platform::String ^ fullTrustPackageRelativeAppId, Platform::String ^ commandLine);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<FullTrustProcessLaunchResult> LaunchFullTrustProcessForAppWithArgumentsAsync(winrt::hstring const& fullTrustPackageRelativeAppId, winrt::hstring const& commandLine);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FullTrustProcessLaunchResult> LaunchFullTrustProcessForAppWithArgumentsAsync(string fullTrustPackageRelativeAppId, string commandLine);
function launchFullTrustProcessForAppWithArgumentsAsync(fullTrustPackageRelativeAppId, commandLine)
Public Shared Function LaunchFullTrustProcessForAppWithArgumentsAsync (fullTrustPackageRelativeAppId As String, commandLine As String) As IAsyncOperation(Of FullTrustProcessLaunchResult)

参数

fullTrustPackageRelativeAppId
String

Platform::String

winrt::hstring

调用方要启动其完全信任进程组件的应用相对于进程的应用程序标识符。 完全信任进程可以对此进行分析,以确定哪个应用调用了它。

commandLine
String

Platform::String

winrt::hstring

用于启动进程的命令行参数。

返回

完成时返回 FullTrustProcessLaunchResult 的异步操作。

属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.22000.0 中引入)
API contract
Windows.ApplicationModel.FullTrustAppContract (在 v2.0 中引入)

适用于