# PromptMessageBox

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `method`
- Defined on: [`InteractionService`](/reference/api/go/aspire.hosting/interactionservice.md)
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Prompts the user with a message box dialog.

## Definition

```go
func (InteractionService) PromptMessageBox(
    title string,
    message string,
    options ...*PromptMessageBoxOptions,
) (*BoolInteractionResult, error)
```

## Parameters

- `title` (`string`)
- `message` (`string`)
- `options` (`...*PromptMessageBoxOptions`) -- optional settings, see [Options](#options)

## Options

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

- `Options` ([`*InteractionMessageBoxOptions`](/reference/api/go/aspire.hosting/interactionmessageboxoptions.md))
- `CancellationToken` (`*CancellationToken`)

## Returns

`(*BoolInteractionResult, error)`

Returns `(*BoolInteractionResult, error)`.

## Applies to

- [`InteractionService`](/reference/api/go/aspire.hosting/interactionservice.md)
