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 Inspector 連線。
- debuggingPort
- Int32
如果啟用偵錯,Node.js 進程應該接聽此埠上的 V8 偵測器連線。