# GetSharedComponentTypeHandle<T>()

> Gets the run-time type information required to access a shared component data in a chunk.

## Definition

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

```csharp
public static SharedComponentTypeHandle<T> GetSharedComponentTypeHandle<T>() where T : unmanaged, ISharedComponentData
```

### Returns

| Type                                                                                                          | Description                                                                                                    |
| ------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [SharedComponentTypeHandle\<T>](/engine/7000.0/script-reference/unity/entities/sharedcomponenttypehandle1.md) | An object representing the type information required to safely access shared component data stored in a chunk. |

### Remarks

Not working in Entities.ForEach, IJobEntity, and Utility methods
