Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PromptMessageBox

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

Signature

methodPromptMessageBox
Prompts the user with a message box dialog.
PromptMessageBox(
title string,
message string,
options ...*PromptMessageBoxOptions,
) (*BoolInteractionResult, error)
titlestring
messagestring
options...*PromptMessageBoxOptionsOptional settings, described under Options.

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

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

Returns (*BoolInteractionResult, error).

Applies to

This method applies to the following types: