# QdrantServerResource Constructors

- Package: [Aspire.Hosting.Qdrant](/reference/api/csharp/aspire.hosting.qdrant.md)
- Type: [QdrantServerResource](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Qdrant database.

## QdrantServerResource(string, ParameterResource)

- Name: `Constructor(string, ParameterResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Qdrant/QdrantServerResource.cs#L20-L24)

Initializes a new instance of the [QdrantServerResource](/reference/api/csharp/aspire.hosting.qdrant/qdrantserverresource.md) class.

```csharp
public class QdrantServerResource
{
    public QdrantServerResource(
        string name,
        ParameterResource apiKey)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `apiKey` (`ParameterResource`)
  A `ApplicationModel.ParameterResource` that contains the API Key
