OutOfProcessNodeInstance.PrepareNodeProcessStartInfo 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
配置描述 ProcessStartInfo 如何启动 Node.js 进程的实例。
protected:
virtual System::Diagnostics::ProcessStartInfo ^ PrepareNodeProcessStartInfo(System::String ^ entryPointFilename, System::String ^ projectPath, System::String ^ commandLineArguments, System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ environmentVars, bool launchWithDebugging, int debuggingPort);
protected virtual System.Diagnostics.ProcessStartInfo PrepareNodeProcessStartInfo(string entryPointFilename, string projectPath, string commandLineArguments, System.Collections.Generic.IDictionary<string,string> environmentVars, bool launchWithDebugging, int debuggingPort);
abstract member PrepareNodeProcessStartInfo : string * string * string * System.Collections.Generic.IDictionary<string, string> * bool * int -> System.Diagnostics.ProcessStartInfo
override this.PrepareNodeProcessStartInfo : string * string * string * System.Collections.Generic.IDictionary<string, string> * bool * int -> System.Diagnostics.ProcessStartInfo
Protected Overridable Function PrepareNodeProcessStartInfo (entryPointFilename As String, projectPath As String, commandLineArguments As String, environmentVars As IDictionary(Of String, String), launchWithDebugging As Boolean, debuggingPort As Integer) As ProcessStartInfo
参数
- entryPointFilename
- String
Node.js 进程应执行的入口点 JavaScript 文件。
- projectPath
- String
项目的根路径。 在相对于项目根查找 Node.js 模块时,会使用此方法。
- commandLineArguments
- String
要传递给 Node.js 进程的命令行参数。
- environmentVars
- IDictionary<String,String>
要对 Node.js 进程设置的环境变量。
- launchWithDebugging
- Boolean
如果为 true,则向 Node.js 进程传递一个标志,告知它接受 V8 检查器连接。
- debuggingPort
- Int32
如果启用了调试,Node.js 进程应侦听此端口上的 V8 检查器连接。