# LabelSelectorAttributesV1

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

Represents the attributes used for label selection in Kubernetes resources.

## Definition

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

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

## Constructors

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

## Properties

- [RawSelector](/reference/api/csharp/aspire.hosting.kubernetes/labelselectorattributesv1/properties.md#rawselector) : `string` `get; set` -- 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.
- [Requirements](/reference/api/csharp/aspire.hosting.kubernetes/labelselectorattributesv1/properties.md#requirements) : [List<LabelSelectorRequirementV1>](/reference/api/csharp/aspire.hosting.kubernetes/labelselectorrequirementv1.md) `get` -- 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.
