Language

TemplateAttribute クラス

定義

文字列を生成するテンプレートを定義します。

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true)]
[System.Serializable]
public class TemplateAttribute : Microsoft.Bot.Builder.FormFlow.Advanced.TemplateBaseAttribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Property | System.AttributeTargets.Struct, AllowMultiple=true)>]
[<System.Serializable>]
type TemplateAttribute = class
    inherit TemplateBaseAttribute
Public Class TemplateAttribute
Inherits TemplateBaseAttribute
継承
属性

注釈

テンプレートは、EFパターンで定義されたテンプレート言語 \r使うパターンを提供します。 テンプレートの種類の説明は TemplateUsage をご覧ください。 また、 Templates で提供されているすべてのデフォルトテンプレートを確認することもできます。 テンプレートはフィールドレベルのフォーム、クラス、構造体で上書きできます。 また、テンプレート間をランダムに選ぶこともサポートしていて、回答にバリエーションを持たせる良い方法です。

コンストラクター

名前 説明
TemplateAttribute(TemplateAttribute)

別のテンプレートから初期化してください。

TemplateAttribute(TemplateUsage, String[])

特定の用途に合わせてランダムに選ぶテンプレートのセットを指定します。

フィールド

名前 説明
Usage

これはどんなテンプレートなのか。

プロパティ

名前 説明
AllowDefault

\refパターン文字列の選択肢{||}を処理する際は、デフォルト値が存在する場合は選択肢を提供します。

(継承元 TemplateBaseAttribute)
ChoiceCase

\refパターン文字列の{||}参照内の選択肢を示すコントロールケース。

(継承元 TemplateBaseAttribute)
ChoiceFormat

\refパターン文字列の{||}選択を示す際に使われるフォーマット文字列。

(継承元 TemplateBaseAttribute)
ChoiceLastSeparator

\refパターン文字列の{||}を使って選択リストのインラインリストを構築する際、最後の選択肢の前に使われる文字列です。

(継承元 TemplateBaseAttribute)
ChoiceParens

\rで{||}のインライン選択リストを構築する際、efパターンの文字列は選択肢の囲いに括弧を含めるかどうかを制御します。

(継承元 TemplateBaseAttribute)
ChoiceSeparator

\refパターン文字列で{||}を使ってインラインリストを構築する場合、最後の選択肢を除くすべての選択肢間で使われる文字列です。

(継承元 TemplateBaseAttribute)
ChoiceStyle

\refパターン文字列で処理されたときの選択肢{||}を表示する方法。

(継承元 TemplateBaseAttribute)
Feedback

各入力後にユーザーが受け取るフィードバックの種類をコントロールできます。

(継承元 TemplateBaseAttribute)
FieldCase

\refパターン文字列で{&}フィールド名参照を表示するコントロールケース。

(継承元 TemplateBaseAttribute)
IsLocalizable

属性がローカライズ可能であれば真です。

(継承元 FormFlowAttribute)
LastSeparator

リストを構成する際、\refパターン文字列の{[]}(リストの最後の値の前に使われる文字列)を用います。

(継承元 TemplateBaseAttribute)
Patterns

あらゆるテンプレートを使った。

(継承元 TemplateBaseAttribute)
Separator

\refパターン文字列で{[]}を使ってリストを構築する際、最後の値以外のすべての値間で使われる文字列です。

(継承元 TemplateBaseAttribute)
ValueCase

\refパターン文字列に {} 値参照を表示するコントロールケース。

(継承元 TemplateBaseAttribute)

メソッド

名前 説明
ApplyDefaults(TemplateBaseAttribute)

このテンプレートのデフォルト値は、提供された defaultTemplateによって上書きされます。

(継承元 TemplateBaseAttribute)
Pattern()

IPrompt<T>を使って文字列を生成する際に使うパターン。

(継承元 TemplateBaseAttribute)

適用対象