# TableEntryReference.Type

> The way a table entry reference identifies its entry.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public enum TableEntryReference.Type
```

## Remarks

A [TableEntryReference](/engine/6000.7/script-reference/unity/localization/tableentryreference.md) stores either a key name or a numeric key id, and this enumeration reports which form is present. Read it from [TableEntryReference.ReferenceType](/engine/6000.7/script-reference/unity/localization/tableentryreference/referencetype.md); the value is derived from the stored data rather than set directly. `Empty` indicates the reference points at no entry.

Branch on how an entry reference identifies its entry.

## Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class TableEntryReferenceTypeSwitchExample
    {
        public void Run()
        {
            TableEntryReference entry = "Menu/Start";
            switch (entry.ReferenceType)
            {
                case TableEntryReference.Type.Name: /* look up by key text */ break;
                case TableEntryReference.Type.Id:   /* look up by key id */ break;
                case TableEntryReference.Type.Empty: /* no entry */ break;
            }
        }
    }
}
```

## Fields

| Value                                                                                         | Description                                   |
| --------------------------------------------------------------------------------------------- | --------------------------------------------- |
| [Empty](/engine/6000.7/script-reference/unity/localization/tableentryreference/type/empty.md) | This reference points at no table entry.      |
| [Id](/engine/6000.7/script-reference/unity/localization/tableentryreference/type/id.md)       | The entry is referenced by its stable key id. |
| [Name](/engine/6000.7/script-reference/unity/localization/tableentryreference/type/name.md)   | The entry is referenced by its key text.      |
