InteractionInput
Classsealednet10.0
Represents an input for an interaction.
namespace Aspire.Hosting;
public sealed class InteractionInput{ // ...}18 members
Constructors1
Section titled ConstructorsProperties17
Section titled PropertiesAllowCustomChoiceget; initbool Gets a value indicating whether a custom choice is allowed. Only used by
InputType.Choice inputs. AllowMultipleFilesget; initbool Gets or sets a value indicating whether multiple files can be selected. Only used by
InputType.File inputs. 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. FileFilterget; initstring? Gets or sets the file type filter for
InputType.File inputs. Uses the same format as the HTML accept attribute, e.g. ".pem,.pfx,.crt" or "image/*". When set, the file picker restricts selectable files. The CLI validates only dot-prefixed extension filters and does not validate MIME type patterns such as "image/*". Gets the files associated with this
InputType.File input. Populated after the user selects file(s) and the interaction completes. Labelget; initstring? Gets or sets the label for the input. If not specified, the name will be used as the label.
MaxFileSizeget; initlong? Gets or sets the maximum file size in bytes for
InputType.File inputs. If not specified, the server applies the configured upload limit (default 100 MB). When specified, the value is capped at the server-side upload limit. 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.