# WithNone

> Specify component types that must be absent, or present and disabled.

## 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, or present and disabled.

```csharp
public QueryEnumerable<T1, T2, T3, T4> WithNone<TComponent1>()
```

### Returns

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

## WithNone\<T, U>()

Specify component types that must be absent, or present and disabled.

```csharp
public QueryEnumerable<T1, T2, T3, T4> WithNone<TComponent1, TComponent2>()
```

### Returns

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

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

Specify component types that must be absent, or present and disabled.

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

### Returns

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