# InteractionOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InteractionOptions](/reference/api/csharp/aspire.hosting/interactionoptions.md)
- Kind: `Properties`
- Members: `5`

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

## EnableMessageMarkdown

- Name: `EnableMessageMarkdown`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

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.

```csharp
public bool? EnableMessageMarkdown { get; set; }
```

## PrimaryButtonText

- Name: `PrimaryButtonText`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Optional primary button text to override the default text.

```csharp
public string? PrimaryButtonText { get; set; }
```

## SecondaryButtonText

- Name: `SecondaryButtonText`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Optional secondary button text to override the default text.

```csharp
public string? SecondaryButtonText { get; set; }
```

## ShowDismiss

- Name: `ShowDismiss`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets or sets a value indicating whether show the dismiss button.

```csharp
public bool? ShowDismiss { get; set; }
```

## ShowSecondaryButton

- Name: `ShowSecondaryButton`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs)

Gets or sets a value indicating whether show the secondary button.

```csharp
public bool? ShowSecondaryButton { get; set; }
```
