Share via


TemplateBaseAttribute Class

Definition

Abstract base class used by all attributes that use \ref patterns.

public abstract class TemplateBaseAttribute : Microsoft.Bot.Builder.FormFlow.FormFlowAttribute
type TemplateBaseAttribute = class
    inherit FormFlowAttribute
Public MustInherit Class TemplateBaseAttribute
Inherits FormFlowAttribute
Inheritance
TemplateBaseAttribute
Derived

Constructors

TemplateBaseAttribute(String[])

Initialize with multiple patterns that will be chosen from randomly.

TemplateBaseAttribute(TemplateBaseAttribute)

Initialize from another template.

Properties

AllowDefault

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

ChoiceCase

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

ChoiceFormat

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

ChoiceLastSeparator

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

ChoiceParens

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

ChoiceSeparator

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

ChoiceStyle

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

Feedback

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

FieldCase

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

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.

Patterns

All possible templates.

Separator

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

ValueCase

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

Methods

ApplyDefaults(TemplateBaseAttribute)

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

Pattern()

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

Applies to