# 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/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.
