# BingGroundingConnectionResource Constructors

- Package: [Aspire.Hosting.Foundry](/reference/api/csharp/aspire.hosting.foundry.md)
- Type: [BingGroundingConnectionResource](/reference/api/csharp/aspire.hosting.foundry/binggroundingconnectionresource.md)
- Kind: `Constructors`
- Members: `1`

A Foundry project connection resource specifically for Grounding with Bing Search connections.

## BingGroundingConnectionResource(string, Action<AzureResourceInfrastructure>, AzureCognitiveServicesProjectResource)

- Name: `Constructor(string, Action<AzureResourceInfrastructure>, AzureCognitiveServicesProjectResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Foundry/Project/ConnectionResource.cs#L42)

A Foundry project connection resource specifically for Grounding with Bing Search connections.

```csharp
public class BingGroundingConnectionResource
{
    public BingGroundingConnectionResource(
        string name,
        Action<AzureResourceInfrastructure> configureInfrastructure,
        AzureCognitiveServicesProjectResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
- `configureInfrastructure` (`Action<AzureResourceInfrastructure>`)
- `parent` ([AzureCognitiveServicesProjectResource](/reference/api/csharp/aspire.hosting.foundry/azurecognitiveservicesprojectresource.md))

## Remarks

This type is used to distinguish Bing grounding connections from other connection types, ensuring that only connections created by `AddBingGroundingConnection` can be linked to a [BingGroundingToolResource](/reference/api/csharp/aspire.hosting.foundry/binggroundingtoolresource.md).
