# AzureApiManagementSubscriptionResource Constructors

- Package: [Aspire.Hosting.Azure.ApiManagement](/reference/api/csharp/aspire.hosting.azure.apimanagement.md)
- Type: [AzureApiManagementSubscriptionResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionresource.md)
- Kind: `Constructors`
- Members: `1`

Represents an Azure API Management subscription scoped to a product.

<a id="constructor"></a>
<a id="constructor-string-string-string-azureapimanagementsubscriptionoptions-azureapimanagementproductresource"></a>

## AzureApiManagementSubscriptionResource(string, string, string, AzureApiManagementSubscriptionOptions, AzureApiManagementProductResource)

- Name: `Constructor(string, string, string, AzureApiManagementSubscriptionOptions, AzureApiManagementProductResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.ApiManagement/AzureApiManagementSubscriptionResource.cs#L19-L39)

Represents an Azure API Management subscription scoped to a product.

```csharp
public class AzureApiManagementSubscriptionResource
{
    public AzureApiManagementSubscriptionResource(
        string name,
        string subscriptionName,
        string displayName,
        AzureApiManagementSubscriptionOptions options,
        AzureApiManagementProductResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `subscriptionName` (`string`)
- `displayName` (`string`)
- `options` ([AzureApiManagementSubscriptionOptions](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementsubscriptionoptions.md))
- `parent` ([AzureApiManagementProductResource](/reference/api/csharp/aspire.hosting.azure.apimanagement/azureapimanagementproductresource.md))
