# ContainerImageReference Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ContainerImageReference](/reference/api/csharp/aspire.hosting/containerimagereference.md)
- Kind: `Constructors`
- Members: `1`

Represents the fully‑qualified container image reference that should be deployed.

## ContainerImageReference(IResource)

- Name: `Constructor(IResource)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerImageReference.cs#L21-L24)

Initializes a new instance of the [ContainerImageReference](/reference/api/csharp/aspire.hosting/containerimagereference.md) class.

```csharp
public class ContainerImageReference
{
    public ContainerImageReference(
        IResource resource)
    {
        // ...
    }
}
```

## Parameters

- `resource` ([IResource](/reference/api/csharp/aspire.hosting/iresource.md))
  The resource that this container image is associated with.
