# ComponentType.AccessMode

> The access of the component type

## Definition

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

```csharp
public enum ComponentType.AccessMode
```

## Fields

| Value                                                                                             | Description                                      |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [Exclude](/engine/7000.0/script-reference/unity/entities/componenttype/accessmode/exclude.md)     | Excludes the component type when used in a query |
| [ReadOnly](/engine/7000.0/script-reference/unity/entities/componenttype/accessmode/readonly.md)   | Access to only read the component type           |
| [ReadWrite](/engine/7000.0/script-reference/unity/entities/componenttype/accessmode/readwrite.md) | Access to read and write to the component type   |
