共用方式為


FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppWithArgumentsAsync 方法

定義

使用指定的命令列參數啟動完全信任程式。

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 引進)

適用於