# TryGetBinding(BindingId, out Binding)

> Gets the binding instance for the provided targeted property.

## Definition

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

## TryGetBinding(BindingId, Binding)

```csharp
public bool TryGetBinding(BindingId bindingId, out Binding binding)
```

### Parameters

**** (\[BindingId]\(/engine/6000.5/script-reference/unityengine/uielements/bindingid)): The binding ID.**** (\[Binding]\(/engine/6000.5/script-reference/unityengine/uielements/binding)): When this method returns, contains the binding associated with the target property, if it exists; otherwise contains `null`

### Returns

| Type                                                          | Description                                      |
| ------------------------------------------------------------- | ------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the binding exists; `false` otherwise. |
