# AzureServiceBusCorrelationFilter

- Kind: `class`
- Package: [Aspire.Hosting.Azure.ServiceBus](/reference/api/csharp/aspire.hosting.azure.servicebus.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusCorrelationFilter.cs)

Represents the correlation filter expression.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureServiceBusCorrelationFilter
{
    // ...
}
```

## ATS metadata

### ATS DTO

- Serialized as a plain JSON object without a `$type` discriminator.

## Constructors

- [AzureServiceBusCorrelationFilter](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/constructors.md#constructor) -- Represents the correlation filter expression.

## Properties

- [ContentType](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#contenttype) : `string?` `get; set` -- Content type of the message.
- [CorrelationId](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#correlationid) : `string?` `get; set` -- Identifier of the correlation.
- [MessageId](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#messageid) : `string?` `get; set` -- Identifier of the message.
- [Properties](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#properties) : `Dictionary<string, object>` `get; set` -- Dictionary object for custom filters.
- [ReplyTo](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#replyto) : `string?` `get; set` -- Address of the queue to reply to.
- [ReplyToSessionId](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#replytosessionid) : `string?` `get; set` -- Session identifier to reply to.
- [RequiresPreprocessing](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#requirespreprocessing) : `bool?` `get; set` -- Value that indicates whether the rule action requires preprocessing.
- [SendTo](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#sendto) : `string?` `get; set` -- Address to send to.
- [SessionId](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#sessionid) : `string?` `get; set` -- Session identifier.
- [Subject](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebuscorrelationfilter/properties.md#subject) : `string?` `get; set` -- Application specific label.
