# ObjectFieldSelectorV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [ObjectFieldSelectorV1](/reference/api/csharp/aspire.hosting.kubernetes/objectfieldselectorv1.md)
- Kind: `Properties`
- Members: `2`

ObjectFieldSelectorV1 represents a selector that identifies a specific field of an object. It is used to specify the path to a field in the resource’s object structure and optionally, an API version to interpret the specified field.

## ApiVersion

- Name: `ApiVersion`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ObjectFieldSelectorV1.cs)

Gets or sets the API version of the referenced Kubernetes resource. This property specifies the version of the Kubernetes API to which the referenced resource belongs and is typically used to ensure compatibility with the desired resource schema.

```csharp
public string ApiVersion { get; set; }
```

## FieldPath

- Name: `FieldPath`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/ObjectFieldSelectorV1.cs)

Gets or sets the field path of the object to select. This property specifies the path to the field within a Kubernetes resource object.

```csharp
public string FieldPath { get; set; }
```
