DkmProductionConnection.StartAgent(String, String, Guid) 方法

定义

启动已重定向输入和输出的代理进程。

         此 API 是在 Visual Studio 15 Update 2 (VS15Update2) 中引入的。
public:
 Microsoft::VisualStudio::Debugger::DefaultPort::DkmProductionAgent ^ StartAgent(System::String ^ AgentCommand, System::String ^ CommandLineParameters, Guid VsService);
public Microsoft.VisualStudio.Debugger.DefaultPort.DkmProductionAgent StartAgent (string AgentCommand, string CommandLineParameters, Guid VsService);
member this.StartAgent : string * string * Guid -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmProductionAgent
Public Function StartAgent (AgentCommand As String, CommandLineParameters As String, VsService As Guid) As DkmProductionAgent

参数

AgentCommand
String

中代理可执行文件的路径。 路径将扩展环境变量。

CommandLineParameters
String

中要传递给代理的命令行参数。

VsService
Guid

中要向 stdout 发送写入内容的 VS 服务的 Guid。

返回

DkmProductionAgent

弄表示此代理的 DkmProductionAgent 实例。

适用于