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

定義

啟動已重新導向輸入和輸出的代理程式進程。Start an agent process with input and output redirected.

此 API 是在 Visual Studio 15 Update 2 中引進 (DkmApiVersion VS15Update2) 。This API was introduced in Visual Studio 15 Update 2 (DkmApiVersion.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

在代理程式可執行檔的路徑。[In] The path of the agent executable. 路徑將會展開環境變數。The path will have environment variables expanded.

CommandLineParameters
String

在要傳遞給代理程式的命令列參數。[In] The command line parameters to pass to the agent.

VsService
Guid

在將寫入的內容傳送至 stdout 的 VS 服務 Guid。[In] The Guid of the VS service to send the contents of writes to stdout to.

傳回

DkmProductionAgent

擴展代表這個代理程式的 DkmProductionAgent 實例。[Out] The DkmProductionAgent instance that represents this agent.

適用於