SourceRange 建構函式

定義

多載

SourceRange(Range, String)

初始化 SourceRange 類別的新執行個體。

SourceRange(ParserRuleContext, String, Int32)

初始化 SourceRange 類別的新執行個體。

SourceRange(Range, String)

初始化 SourceRange 類別的新執行個體。

C#
public SourceRange (Microsoft.Bot.Builder.LanguageGeneration.Range range, string source = "");

參數

range
Range

區塊的範圍。

source
String

來源,用來做為 lg 檔案路徑。

適用於

Microsoft.Bot.Builder 4.0
產品 版本
Microsoft.Bot.Builder 4.0

SourceRange(ParserRuleContext, String, Int32)

初始化 SourceRange 類別的新執行個體。

C#
public SourceRange (Antlr4.Runtime.ParserRuleContext parseTree, string source = "", int offset = 0);

參數

parseTree
Antlr4.Runtime.ParserRuleContext

剖析的規則調用記錄。

source
String

來源,用來做為 lg 檔案路徑。

offset
Int32

剖析樹狀結構中的位移。

適用於

Microsoft.Bot.Builder 4.0
產品 版本
Microsoft.Bot.Builder 4.0