IInteractionService.PromptInputAsync 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.
Overloads
| PromptInputAsync(String, String, InteractionInput, InputsDialogInteractionOptions, CancellationToken) | 
						 Prompts the user for a single input using a specified InteractionInput.  | 
        	
| PromptInputAsync(String, String, String, String, InputsDialogInteractionOptions, CancellationToken) | 
						 Prompts the user for a single text input.  | 
        	
PromptInputAsync(String, String, InteractionInput, InputsDialogInteractionOptions, CancellationToken)
- Source:
 - IInteractionService.cs
 
- Source:
 - IInteractionService.cs
 
Prompts the user for a single input using a specified InteractionInput.
public System.Threading.Tasks.Task<Aspire.Hosting.InteractionResult<Aspire.Hosting.InteractionInput>> PromptInputAsync(string title, string? message, Aspire.Hosting.InteractionInput input, Aspire.Hosting.InputsDialogInteractionOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
	abstract member PromptInputAsync : string * string * Aspire.Hosting.InteractionInput * Aspire.Hosting.InputsDialogInteractionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.InteractionResult<Aspire.Hosting.InteractionInput>>
	Public Function PromptInputAsync (title As String, message As String, input As InteractionInput, Optional options As InputsDialogInteractionOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InteractionResult(Of InteractionInput))
	Parameters
- title
 - String
 
The title of the input dialog.
- message
 - String
 
The message to display in the dialog.
- input
 - InteractionInput
 
The input configuration.
- 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 input.
Applies to
PromptInputAsync(String, String, String, String, InputsDialogInteractionOptions, CancellationToken)
- Source:
 - IInteractionService.cs
 
- Source:
 - IInteractionService.cs
 
Prompts the user for a single text input.
public System.Threading.Tasks.Task<Aspire.Hosting.InteractionResult<Aspire.Hosting.InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, Aspire.Hosting.InputsDialogInteractionOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
	abstract member PromptInputAsync : string * string * string * string * Aspire.Hosting.InputsDialogInteractionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Aspire.Hosting.InteractionResult<Aspire.Hosting.InteractionInput>>
	Public Function PromptInputAsync (title As String, message As String, inputLabel As String, placeHolder As String, Optional options As InputsDialogInteractionOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of InteractionResult(Of InteractionInput))
	Parameters
- title
 - String
 
The title of the input dialog.
- message
 - String
 
The message to display in the dialog.
- inputLabel
 - String
 
The label for the input field.
- placeHolder
 - String
 
The placeholder text for the input field.
- 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 input.