# VisitReturnCode

> Internal return code used during path visitation.

## Definition

* **Type:** Enum
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

```csharp
public enum VisitReturnCode
```

## Fields

| Value                                                                                                            | Description                                                        |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| [AccessViolation](/engine/6000.7/script-reference/unity/properties/visitreturncode/accessviolation.md)           | Failed to set value at path because it is read-only.               |
| [InvalidCast](/engine/6000.7/script-reference/unity/properties/visitreturncode/invalidcast.md)                   | Failed to reinterpret the target value as the requested type.      |
| [InvalidContainerType](/engine/6000.7/script-reference/unity/properties/visitreturncode/invalidcontainertype.md) | The given container type is not valid for visitation.              |
| [InvalidPath](/engine/6000.7/script-reference/unity/properties/visitreturncode/invalidpath.md)                   | Failed to resolve some part of the path (e.g. Name, Index or Key). |
| [MissingPropertyBag](/engine/6000.7/script-reference/unity/properties/visitreturncode/missingpropertybag.md)     | No property bag was found for the given container type.            |
| [NullContainer](/engine/6000.7/script-reference/unity/properties/visitreturncode/nullcontainer.md)               | The container being visited was null.                              |
| [Ok](/engine/6000.7/script-reference/unity/properties/visitreturncode/ok.md)                                     | The visitation resolved successfully.                              |
