# 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Azure.ServiceBus/AzureServiceBusTopicResource.cs#L24-L69)

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.
