# CrossVersionObjectReferenceV2 Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [CrossVersionObjectReferenceV2](/reference/api/csharp/aspire.hosting.kubernetes/crossversionobjectreferencev2.md)
- Kind: `Constructors`
- Members: `1`

Represents a reference to an object across different API versions in Kubernetes.

## CrossVersionObjectReferenceV2

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Kubernetes/Resources/CrossVersionObjectReferenceV2.cs#L17)

Represents a reference to an object across different API versions in Kubernetes.

```csharp
public sealed class CrossVersionObjectReferenceV2
{
    public CrossVersionObjectReferenceV2()
    {
        // ...
    }
}
```

## Remarks

The CrossVersionObjectReferenceV2 class is used to specify a reference to a Kubernetes object, irrespective of the object's API version. It contains details such as the name of the referenced object.
