# WithNone

> Specify component types that must be absent.

## Definition

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

## WithNone\<T>()

Specify component types that must be absent.

```csharp
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5, T6> WithNone<TComponent1>()
```

### Returns

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

## WithNone\<T, U>()

Specify component types that must be absent.

```csharp
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5, T6> WithNone<TComponent1, TComponent2>()
```

### Returns

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

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

Specify component types that must be absent.

```csharp
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5, T6> WithNone<TComponent1, TComponent2, TComponent3>()
```

### Returns

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