# AzureServiceBusTopicResource Constructors

- Package: [Aspire.Hosting.Azure.ServiceBus](/reference/api/csharp/aspire.hosting.azure.servicebus.md)
- Type: [AzureServiceBusTopicResource](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebustopicresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a Service Bus Topic. Initializes a new instance of the [AzureServiceBusTopicResource](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebustopicresource.md) class.

## AzureServiceBusTopicResource(string, string, AzureServiceBusResource)

- Name: `Constructor(string, string, AzureServiceBusResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusTopicResource.cs#L26-L71)

Represents a Service Bus Topic. Initializes a new instance of the [AzureServiceBusTopicResource](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebustopicresource.md) class.

```csharp
public class AzureServiceBusTopicResource
{
    public AzureServiceBusTopicResource(
        string name,
        string topicName,
        AzureServiceBusResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `topicName` (`string`)
- `parent` ([AzureServiceBusResource](/reference/api/csharp/aspire.hosting.azure.servicebus/azureservicebusresource.md))

## Remarks

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.
