Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

InteractionInputBuilder.WithChoiceOptions

Method
📦 Aspire.Hosting v17.0.0
type InteractionInputBuilder interface {
// ... omitted for brevity
WithChoiceOptions(choices []*InteractionChoiceOption) InteractionInputBuilder
}

Signature

methodWithChoiceOptions
Sets the choice options for the input.
WithChoiceOptions(choices []*InteractionChoiceOption) InteractionInputBuilder
choices[]*InteractionChoiceOptionThe available choices, in display order. Each option pairs a submitted value with a display label.
InteractionInputBuilder

The same builder handle.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: