HelpContext(HelpBuilder, Command, TextWriter, ParseResult) 建構函式

定義

重要

部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。

public HelpContext (System.CommandLine.Help.HelpBuilder helpBuilder, System.CommandLine.Command command, System.IO.TextWriter output, System.CommandLine.Parsing.ParseResult? parseResult = default);
new System.CommandLine.Help.HelpContext : System.CommandLine.Help.HelpBuilder * System.CommandLine.Command * System.IO.TextWriter * System.CommandLine.Parsing.ParseResult -> System.CommandLine.Help.HelpContext
Public Sub New (helpBuilder As HelpBuilder, command As Command, output As TextWriter, Optional parseResult As ParseResult = Nothing)

參數

helpBuilder
HelpBuilder

目前的說明產生器。

command
Command

正在格式化說明的命令。

output
TextWriter

要寫入輸出的文字寫入器。

parseResult
ParseResult

目前剖析作業的結果。

適用於

產品 版本
System.CommandLine 2.0