GetValueBinding
Methods
public static ValueBinding<TBinding> GetValueBinding<TComponent, TBinding>(this CoherenceSync sync, string bindingName) where TComponent : Component
Get the first value binding on the component of a specific type.
Parameters
| Type | Name | Description |
|---|---|---|
| CoherenceSync | sync | The CoherenceSync instance. |
| string | bindingName | The name that identifies the binding. |
Returns
| Type | Description |
|---|---|
| ValueBinding<TBinding> | The value binding if found. |
Type Parameters
| Name | Description |
|---|---|
| TComponent | The component type (must derive from Component). |
| TBinding | The value type of the binding. |
Exceptions
| Type | Condition |
|---|---|
| Exception | Thrown when no matching binding is found. |