# TableReference.Type

> The way a table reference identifies its collection.

## Definition

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

```csharp
public enum TableReference.Type
```

## Remarks

A [TableReference](/engine/6000.7/script-reference/unity/localization/tablereference.md) stores either a name or a GUID, and this enumeration reports which form is present. Read it from [TableReference.ReferenceType](/engine/6000.7/script-reference/unity/localization/tablereference/referencetype.md) rather than setting it directly, because the value is derived from the stored data. `Empty` indicates the reference points at nothing.

Branch on how a reference identifies its collection.

## Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class TableReferenceTypeSwitchExample
    {
        public void Run()
        {
            TableReference reference = "UI Text";
            switch (reference.ReferenceType)
            {
                case TableReference.Type.Name: /* look up by name */ break;
                case TableReference.Type.Guid: /* look up by GUID */ break;
                case TableReference.Type.Empty: /* no collection */ break;
            }
        }
    }
}
```

## Fields

| Value                                                                                    | Description                                   |
| ---------------------------------------------------------------------------------------- | --------------------------------------------- |
| [Empty](/engine/6000.7/script-reference/unity/localization/tablereference/type/empty.md) | This reference points at no table collection. |
| [Guid](/engine/6000.7/script-reference/unity/localization/tablereference/type/guid.md)   | The collection is referenced by its GUID.     |
| [Name](/engine/6000.7/script-reference/unity/localization/tablereference/type/name.md)   | The collection is referenced by its name.     |
