SimulatorClient.StartProcessAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
启动模拟器中作为已登录用户运行的进程。 此过程始终直接从可执行文件启动, (不通过 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
完成激活时要调用的完成例程的实现。
实现
例外
如果有任何异步操作正在进行,则引发此异常。 或模拟器中的任何其他错误情况。