Skip to content
DocsTry Aspire
DocsTry

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

Applies to

This method applies to the following types: