# LabelSelectorAttributesV1 Properties

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

Represents the attributes used for label selection in Kubernetes resources.

## RawSelector

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

Gets or sets the raw string representation of a label selector. This property allows defining label selection criteria in a raw textual format, which can be used to match resources based on their label key-value pairs.

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

## Requirements

- Name: `Requirements`
- Modifiers: `get`
- Returns: [List<LabelSelectorRequirementV1>](/reference/api/csharp/aspire.hosting.kubernetes/labelselectorrequirementv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/LabelSelectorAttributesV1.cs#L28)

Represents the collection of label selector requirements associated with this object. Each requirement is a key-value pair that defines a rule for selecting Kubernetes resources based on their labels.

```csharp
public List<LabelSelectorRequirementV1> Requirements { get; }
```
