# LocalObjectReferenceV1

- 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/LocalObjectReferenceV1.cs)

Represents a reference to a Kubernetes object by name.

## Definition

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

public sealed class LocalObjectReferenceV1
{
    // ...
}
```

## Remarks

This class is used to refer to a specific Kubernetes object within the same namespace by specifying its name. It is commonly referenced in other resources to associate with configurations or secrets.

## Constructors

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

## Properties

- [Name](/reference/api/csharp/aspire.hosting.kubernetes/localobjectreferencev1/properties.md#name) : `string` `get; set` -- Gets or sets the name of the referenced object within the same namespace.
