FullTrustProcessLauncher.LaunchFullTrustProcessForAppWithArgumentsAsync 方法

定義

使用指定的命令列參數,啟動指定之應用程式識別碼的完整信任程式。

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

適用於