Language

PromptAttribute クラス

定義

フィールドについて質問する際に使うプロンプトを定義してください。

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

注釈

プロンプトはデフォルトでEFテンプレート \rから出ます。 この属性により、もう1つの \refパターンの文字列でこれを上書きできます。 実際のプロンプトは、あなたが提供した代替案の中からランダムに選ばれます。

コンストラクター

名前 説明
PromptAttribute(String[])

ランダムに選べるEFパターンを1つ以上用意したプロンプト \r定義します。

PromptAttribute(TemplateAttribute)

TemplateAttributeに基づいてプロンプトを定義します。

プロパティ

名前 説明
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)

適用対象