# WithAbsent

> Specify all read-only component types that must NOT be present.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## WithAbsent\<T>()

Specify all read-only component types that must NOT be present.

```csharp
public QueryEnumerable<T1, T2> WithAbsent<TComponent1>()
```

### Returns

| Type                                                                                         | Description                                                                                                                                 |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [QueryEnumerable\<T, U>](/engine/7000.0/script-reference/unity/entities/queryenumerable2.md) | QueryEnumerable, which allows enumerating over all RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query. |

## WithAbsent\<T, U>()

Specify all read-only component types that must NOT be present.

```csharp
public QueryEnumerable<T1, T2> WithAbsent<TComponent1, TComponent2>()
```

### Returns

| Type                                                                                         | Description                                                                                                                                 |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [QueryEnumerable\<T, U>](/engine/7000.0/script-reference/unity/entities/queryenumerable2.md) | QueryEnumerable, which allows enumerating over all RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query. |

## WithAbsent\<T, U, V>()

Specify all read-only component types that must NOT be present.

```csharp
public QueryEnumerable<T1, T2> WithAbsent<TComponent1, TComponent2, TComponent3>()
```

### Returns

| Type                                                                                         | Description                                                                                                                                 |
| -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [QueryEnumerable\<T, U>](/engine/7000.0/script-reference/unity/entities/queryenumerable2.md) | QueryEnumerable, which allows enumerating over all RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query. |
