SimulatorClient.StartProcessAsync 方法

定义

启动模拟器中作为已登录用户运行的进程。 此过程始终直接从可执行文件启动, (不通过 shell) 。 如果进程是控制台应用程序,则在没有控制台窗口的情况下运行。

public:
 virtual void StartProcessAsync(Microsoft::Windows::Simulator::Client::StartProcessInfo startInfo, Microsoft::Windows::Simulator::Client::IProcessStartedCompletionRoutine ^ completionRoutine);
public void StartProcessAsync (Microsoft.Windows.Simulator.Client.StartProcessInfo startInfo, Microsoft.Windows.Simulator.Client.IProcessStartedCompletionRoutine completionRoutine);
abstract member StartProcessAsync : Microsoft.Windows.Simulator.Client.StartProcessInfo * Microsoft.Windows.Simulator.Client.IProcessStartedCompletionRoutine -> unit
override this.StartProcessAsync : Microsoft.Windows.Simulator.Client.StartProcessInfo * Microsoft.Windows.Simulator.Client.IProcessStartedCompletionRoutine -> unit
Public Sub StartProcessAsync (startInfo As StartProcessInfo, completionRoutine As IProcessStartedCompletionRoutine)

参数

startInfo
StartProcessInfo

用于在模拟器中启动进程的参数集。

completionRoutine
IProcessStartedCompletionRoutine

完成激活时要调用的完成例程的实现。

实现

例外

如果有任何异步操作正在进行,则引发此异常。 或模拟器中的任何其他错误情况。

适用于