FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppWithArgumentsAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的命令行参数启动完全信任进程。
public:
static IAsyncOperation<FullTrustProcessLaunchResult ^> ^ LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(Platform::String ^ commandLine);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<FullTrustProcessLaunchResult> LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(winrt::hstring const& commandLine);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<FullTrustProcessLaunchResult> LaunchFullTrustProcessForCurrentAppWithArgumentsAsync(string commandLine);
function launchFullTrustProcessForCurrentAppWithArgumentsAsync(commandLine)
Public Shared Function LaunchFullTrustProcessForCurrentAppWithArgumentsAsync (commandLine As String) As IAsyncOperation(Of FullTrustProcessLaunchResult)
参数
- commandLine
-
String
Platform::String
winrt::hstring
用于启动进程的命令行参数。
返回
完成时返回 FullTrustProcessLaunchResult 的异步操作。
- 属性
Windows 要求
设备系列 |
Windows Desktop Extension SDK (在 10.0.22000.0 中引入)
|
API contract |
Windows.ApplicationModel.FullTrustAppContract (在 v2.0 中引入)
|