# ObjectReferenceV1

- Kind: `class`
- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Version: `13.3.0-preview.1.26254.5`
- Namespace: `Aspire.Hosting.Kubernetes.Resources`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ObjectReferenceV1.cs)
- Inherits: [BaseKubernetesObject](/reference/api/csharp/aspire.hosting.kubernetes/basekubernetesobject.md)

Represents a reference to an object within a Kubernetes cluster.

## Definition

```csharp
namespace Aspire.Hosting.Kubernetes.Resources;

public sealed class ObjectReferenceV1
    : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesObject
{
    // ...
}
```

## Constructors

- [ObjectReferenceV1](/reference/api/csharp/aspire.hosting.kubernetes/objectreferencev1/constructors.md#constructor)

## Properties

- [FieldPath](/reference/api/csharp/aspire.hosting.kubernetes/objectreferencev1/properties.md#fieldpath) : `string` `get; set` -- Gets or sets the field within the object that the reference points to.
- [Name](/reference/api/csharp/aspire.hosting.kubernetes/objectreferencev1/properties.md#name) : `string` `get; set` -- Gets or sets the name of the Kubernetes resource that this object refers to.
- [Namespace](/reference/api/csharp/aspire.hosting.kubernetes/objectreferencev1/properties.md#namespace) : `string` `get; set` -- Gets or sets the namespace of the Kubernetes object. This determines the organizational scope within which the resource resides, typically grouping resources under common logical units for access control and resource management.
- [ResourceVersion](/reference/api/csharp/aspire.hosting.kubernetes/objectreferencev1/properties.md#resourceversion) : `string` `get; set` -- Gets or sets the specific version of the resource. This is used to track changes to the resource and ensure consistency during updates. The `ResourceVersion` is typically set by the server and can be used for optimistic concurrency control when modifying or retrieving resources.
- [Uid](/reference/api/csharp/aspire.hosting.kubernetes/objectreferencev1/properties.md#uid) : `string` `get; set` -- Gets or sets the unique identifier (UID) of the referenced resource. This is a unique value assigned by Kubernetes to identify the resource instance.
