# BindingContext

> Context object containing the necessary information to resolve a binding.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public readonly struct BindingContext
```

## Properties

| Property                                                                                                  | Description                                                                                                                                                    |
| --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bindingId](/engine/6000.6/script-reference/unityengine/uielements/bindingcontext/bindingid.md)           | The binding ID of the element to bind.                                                                                                                         |
| [dataSource](/engine/6000.6/script-reference/unityengine/uielements/bindingcontext/datasource.md)         | The data source that was resolved for a given binding.                                                                                                         |
| [dataSourcePath](/engine/6000.6/script-reference/unityengine/uielements/bindingcontext/datasourcepath.md) | The resolved path to the value in the source, including relative data source paths found in the hierarchy between the target and to the resolved source owner. |
| [targetElement](/engine/6000.6/script-reference/unityengine/uielements/bindingcontext/targetelement.md)   | The target element of the binding.                                                                                                                             |
