PromptAttribute Class

Definition

Define the prompt used when asking about a field.

[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
Inheritance
Attributes

Remarks

Prompts by default will come from \ref Templates. This attribute allows you to override this with one more \ref patterns strings. The actual prompt will be randomly selected from the alternatives you provide.

Constructors

PromptAttribute(String[])

Define a prompt with one or more \ref patterns patterns to choose from randomly.

PromptAttribute(TemplateAttribute)

Define a prompt based on a TemplateAttribute.

Properties

AllowDefault

When processing choices {||} in a \ref patterns string, provide a choice for the default value if present.

(Inherited from TemplateBaseAttribute)
ChoiceCase

Control case when showing choices in {||} references in a \ref patterns string.

(Inherited from TemplateBaseAttribute)
ChoiceFormat

Format string used for presenting each choice when showing {||} choices in a \ref patterns string.

(Inherited from TemplateBaseAttribute)
ChoiceLastSeparator

When constructing inline lists of choices using {||} in a \ref patterns string, the string used before the last choice.

(Inherited from TemplateBaseAttribute)
ChoiceParens

When constructing inline choice lists for {||} in a \ref patterns string controls whether to include parentheses around choices.

(Inherited from TemplateBaseAttribute)
ChoiceSeparator

When constructing inline lists using {||} in a \ref patterns string, the string used between all choices except the last.

(Inherited from TemplateBaseAttribute)
ChoiceStyle

How to display choices {||} when processed in a \ref patterns string.

(Inherited from TemplateBaseAttribute)
Feedback

Control what kind of feedback the user gets after each input.

(Inherited from TemplateBaseAttribute)
FieldCase

Control case when showing {&} field name references in a \ref patterns string.

(Inherited from TemplateBaseAttribute)
IsLocalizable

True if attribute is localizable.

(Inherited from FormFlowAttribute)
LastSeparator

When constructing lists using {[]} in a \ref patterns string, the string used before the last value in the list.

(Inherited from TemplateBaseAttribute)
Patterns

All possible templates.

(Inherited from TemplateBaseAttribute)
Separator

When constructing lists using {[]} in a \ref patterns string, the string used between all values except the last.

(Inherited from TemplateBaseAttribute)
ValueCase

Control case when showing {} value references in a \ref patterns string.

(Inherited from TemplateBaseAttribute)

Methods

ApplyDefaults(TemplateBaseAttribute)

Any default values in this template will be overridden by the supplied defaultTemplate.

(Inherited from TemplateBaseAttribute)
Pattern()

The pattern to use when generating a string using IPrompt<T>.

(Inherited from TemplateBaseAttribute)

Applies to