IInteractionService.PromptInputsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prompts the user for multiple inputs.
public System.Threading.Tasks.Task<Aspire.Hosting.InteractionResult<Aspire.Hosting.InteractionInputCollection>> PromptInputsAsync(string title, string? message, System.Collections.Generic.IReadOnlyList<Aspire.Hosting.InteractionInput> inputs, Aspire.Hosting.InputsDialogInteractionOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member PromptInputsAsync : string * string * System.Collections.Generic.IReadOnlyList<Aspire.Hosting.InteractionInput> * Aspire.Hosting.InputsDialogInteractionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.InteractionResult<Aspire.Hosting.InteractionInputCollection>>
Public Function PromptInputsAsync (title As String, message As String, inputs As IReadOnlyList(Of InteractionInput), Optional options As InputsDialogInteractionOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InteractionResult(Of InteractionInputCollection))
Parameters
- title
- String
The title of the input dialog.
- message
- String
The message to display in the dialog.
- inputs
- IReadOnlyList<InteractionInput>
A collection of InteractionInput to prompt for.
- options
- InputsDialogInteractionOptions
Optional configuration for the input dialog interaction.
- cancellationToken
- CancellationToken
A token to cancel the operation.
Returns
An InteractionResult<T> containing the user's inputs as an InteractionInputCollection.