InteractionInput
Class sealed net10.0
Represents an input for an interaction.
namespace Aspire.Hosting;
public sealed class InteractionInput{ // ...} 14 members
Constructors1
Section titled ConstructorsProperties13
Section titled PropertiesAllowCustomChoiceget; initbool Gets a value indicating whether a custom choice is allowed. Only used by
InputType.Choice inputs. Descriptionget; initstring? Gets or sets the description for the input.
Disabledget; setbool Gets or sets a value indicating whether a custom choice is allowed. Only used by
InputType.Choice inputs. DynamicLoadingget; init Gets the
InputLoadOptions for the input. Dynamic loading is used to load data and update inputs after a prompt has started. It can also be used to reload data and update inputs after a dependant input has changed. EnableDescriptionMarkdownget; initbool Gets or sets a value indicating whether the description should be rendered as Markdown. Setting this to
true allows a description to contain Markdown elements such as links, text decoration and lists. InputTypeget; init Gets or sets the type of the input.
Labelget; initstring? Gets or sets the label for the input. If not specified, the name will be used as the label.
MaxLengthget; initint? gets or sets the maximum length for text inputs.
Nameget; initstring Gets or sets the name for the input. Used for accessing inputs by name from a keyed collection.
Optionsget; setIReadOnlyList<KeyValuePair<string, string>> Gets or sets the options for the input. Only used by
InputType.Choice inputs. Placeholderget; initstring? Gets the placeholder text for the input.
Requiredget; initbool Gets or sets a value indicating whether the input is required.
Valueget; setstring? Gets or sets the value of the input.