IsBindingValid
method in Coherence.Editor.CoherenceSyncUtils
Methods
[Obsolete("Use IsBindingValid(Coherence.Toolkit.CoherenceSync,int,out string) instead.")]
public static bool IsBindingValid(CoherenceSync sync, Binding binding, out string invalidReason)
Check if a binding on a CoherenceSync component is valid.
Parameters
Type | Name | Description |
---|---|---|
Coherence |
sync | The CoherenceSync component the binding is on. |
Binding | binding | The Binding instance that represents a synced member. |
string | invalidReason | If the binding is invalid, this string holds the reason why. |
Returns
Remarks
A binding is valid if:
- The target Component exists.
- The associated Descriptor for the given Component type exists.
Is
Check if a binding on a CoherenceSync component is valid.
Parameters
Type | Name | Description |
---|---|---|
Coherence |
sync | The CoherenceSync component the binding is on. |
int | index | The index on Bindings for the binding to validate. |
string | invalidReason | If the binding is invalid, this string holds the reason why. |
Returns
Remarks
A binding is valid if:
- The target Component exists.
- The associated Descriptor for the given Component type exists.