IUserPromptService.ShowUserPromptWithConfigurationAsync 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 input, either a string or a selection from a set of options.
public System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult> ShowUserPromptWithConfigurationAsync(string prompt, Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptConfiguration configuration, System.Threading.CancellationToken ct);
abstract member ShowUserPromptWithConfigurationAsync : string * Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptConfiguration * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.VisualStudio.RpcContracts.Notifications.UserPromptResult>
Public Function ShowUserPromptWithConfigurationAsync (prompt As String, configuration As UserPromptConfiguration, ct As CancellationToken) As ValueTask(Of UserPromptResult)
Parameters
- prompt
- String
The message to display.
- configuration
- UserPromptConfiguration
The configuration for the user prompt.
A cancellation token.
Returns
UserPromptResult indicating the user's response.
Remarks
Added in VisualStudioServices.VS2022_14Services.