Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PromptConfirmation

Method
📦 Aspire.Hosting v17.0.0
func (InteractionService) PromptConfirmation(
title string,
message string,
options ...*PromptConfirmationOptions,
) (*BoolInteractionResult, error)

Signature

methodPromptConfirmation
Prompts the user for confirmation with an OK/Cancel dialog.
PromptConfirmation(
title string,
message string,
options ...*PromptConfirmationOptions,
) (*BoolInteractionResult, error)
titlestring
messagestring
options...*PromptConfirmationOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*PromptConfirmationOptions argument.

Options*InteractionMessageBoxOptions
CancellationToken*CancellationToken
(*BoolInteractionResult, error)

Returns (*BoolInteractionResult, error).

Applies to

This method applies to the following types: