# InteractionOptions

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Optional configuration for interactions added with `Hosting.InteractionService`.

## Definition

```csharp
namespace Aspire.Hosting;

public class InteractionOptions
{
    // ...
}
```

## Constructors

- [InteractionOptions](/reference/api/csharp/aspire.hosting/interactionoptions/constructors.md#constructor)

## Properties

- [EnableMessageMarkdown](/reference/api/csharp/aspire.hosting/interactionoptions/properties.md#enablemessagemarkdown) : `bool?` `get; set` -- Gets or sets a value indicating whether Markdown in the message is rendered. Setting this to `true` allows a message to contain Markdown elements such as links, text decoration and lists.
- [PrimaryButtonText](/reference/api/csharp/aspire.hosting/interactionoptions/properties.md#primarybuttontext) : `string?` `get; set` -- Optional primary button text to override the default text.
- [SecondaryButtonText](/reference/api/csharp/aspire.hosting/interactionoptions/properties.md#secondarybuttontext) : `string?` `get; set` -- Optional secondary button text to override the default text.
- [ShowDismiss](/reference/api/csharp/aspire.hosting/interactionoptions/properties.md#showdismiss) : `bool?` `get; set` -- Gets or sets a value indicating whether show the dismiss button.
- [ShowSecondaryButton](/reference/api/csharp/aspire.hosting/interactionoptions/properties.md#showsecondarybutton) : `bool?` `get; set` -- Gets or sets a value indicating whether show the secondary button.
