Skip to content
DocsTry Aspire
DocsTry

IInteractionService.promptConfirmation

Method
📦 Aspire.Hosting v13.5.0
interface IInteractionService {
// ... omitted for brevity
promptConfirmation(
title: string,
message: string,
options?: InteractionMessageBoxOptions,
cancellationToken?: cancellationToken): BoolInteractionResult;
}

Signature

methodpromptConfirmation
Prompts the user for confirmation with an OK/Cancel dialog.
promptConfirmation(
title: string,
message: string,
options?: InteractionMessageBoxOptions,
cancellationToken?: cancellationToken): BoolInteractionResult
titlestring
messagestring
optionsInteractionMessageBoxOptionsoptional
cancellationTokencancellationTokenoptional
BoolInteractionResult

Defined on

This method is defined on the following type: