# AddNone(ComponentType)

> Obsolete. Use EntityQueryBuilder.WithNone instead.

## Definition

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

> **Warning:**
>
> **Deprecated.** Use WithNone\<T,...> instead, or WithNone(INativeList) if component types are not known at compile time. (RemovedAfter Entities 1.0)

```csharp
public EntityQueryBuilder AddNone(ComponentType t)
```

### Parameters

**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): The component type

### Returns

| Type                                                                                       | Description                                  |
| ------------------------------------------------------------------------------------------ | -------------------------------------------- |
| [EntityQueryBuilder](/engine/7000.0/script-reference/unity/entities/entityquerybuilder.md) | The builder object that invoked this method. |

### Remarks

**Obsolete.** Use [EntityQueryBuilder.WithNone](/engine/7000.0/script-reference/unity/entities/entityquerybuilder/withnone.md) instead.

Add a "none" matching type to the current query. Types in the None list are never written to. If the AccessModeType field of the provided component type is [ComponentType.AccessMode.ReadWrite](/engine/7000.0/script-reference/unity/entities/componenttype/accessmode/readwrite.md), will be forced to [NativeArray\<T>.ReadOnly](/engine/7000.0/script-reference/unity/collections/nativearray1/readonly.md) in the query.
