次の方法で共有


Template class

ここでは、コンテキストまたはすべての種類の訪問者として簡単に理解して使用できるデータ モデルです。これは、エバレーター、静的チェッカー、アナイラーです。 等

コンストラクター

Template(string, string[], string, SourceRange)

Template クラスの新しいインスタンスを作成します。

プロパティ

body

このテンプレートの本文のテキスト形式。 名前とパラメーターを除くすべてのコンテンツ。

name

テンプレートの名前。LG ファイルの後に '#' が続くもの

parameters

このテンプレートのパラメーター リスト

properties

オブジェクトの拡張プロパティ。

sourceRange

このテンプレートのソース

templateBodyParseTree

このテンプレートの解析ツリー。

メソッド

toString()

現在の Template オブジェクトを表す文字列を返します。

コンストラクターの詳細

Template(string, string[], string, SourceRange)

Template クラスの新しいインスタンスを作成します。

new Template(templatename: string, parameters: string[], templatebody: string, sourceRange: SourceRange)

パラメーター

templatename

string

パラメーターのないテンプレート名。

parameters

string[]

パラメーター リスト。

templatebody

string

テンプレートの内容。

sourceRange
SourceRange

(xref:botbuilder-lg.テンプレートの SourceRange)。

プロパティの詳細

body

このテンプレートの本文のテキスト形式。 名前とパラメーターを除くすべてのコンテンツ。

body: string

プロパティ値

string

name

テンプレートの名前。LG ファイルの後に '#' が続くもの

name: string

プロパティ値

string

parameters

このテンプレートのパラメーター リスト

parameters: string[]

プロパティ値

string[]

properties

オブジェクトの拡張プロパティ。

properties?: Record<string, unknown>

プロパティ値

Record<string, unknown>

sourceRange

このテンプレートのソース

sourceRange: SourceRange

プロパティ値

templateBodyParseTree

このテンプレートの解析ツリー。

templateBodyParseTree: BodyContext

プロパティ値

メソッドの詳細

toString()

現在の Template オブジェクトを表す文字列を返します。

function toString(): string

戻り値

string

テンプレートを表す文字列。