IDkmProductionConnection.StartAgent 方法

定义

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

public:
 Microsoft::VisualStudio::Debugger::DefaultPort::DkmProductionAgent ^ StartAgent(Microsoft::VisualStudio::Debugger::DefaultPort::DkmProductionConnection ^ productionConnection, System::String ^ agentCommand, System::String ^ commandLineParameters, Guid vsService);
public Microsoft.VisualStudio.Debugger.DefaultPort.DkmProductionAgent StartAgent (Microsoft.VisualStudio.Debugger.DefaultPort.DkmProductionConnection productionConnection, string agentCommand, string commandLineParameters, Guid vsService);
abstract member StartAgent : Microsoft.VisualStudio.Debugger.DefaultPort.DkmProductionConnection * string * string * Guid -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmProductionAgent
Public Function StartAgent (productionConnection As DkmProductionConnection, agentCommand As String, commandLineParameters As String, vsService As Guid) As DkmProductionAgent

参数

productionConnection
DkmProductionConnection

中这表示监视器和 IDE 之间的连接,用于传输与生产方案相关的消息。

agentCommand
String

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

commandLineParameters
String

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

vsService
Guid

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

返回

DkmProductionAgent

弄表示此代理的 DkmProductionAgent 实例。

适用于