Class ReferenceBindingHandle
Represents a handle to an internally addressed, writable reference to a VBTypedValue.
public record ReferenceBindingHandle : IBindingHandle, IEquatable<ReferenceBindingHandle>
- Inheritance
-
ReferenceBindingHandle
- Implements
- Inherited Members
Constructors
ReferenceBindingHandle(VBRuntimeReference)
public ReferenceBindingHandle(VBRuntimeReference value)
Parameters
valueVBRuntimeReference
Properties
BindingCapabilities
Indicates the valid members of this binding.
public BindingCapabilities BindingCapabilities { get; }
Property Value
Value
The bound runtime value, read without a resolver.
public IRuntimeValue Value { get; }
Property Value
Remarks
👉 A direct read for the common literal/value cases. Handles that resolve a value lazily or via a reference still expose GetValue(ISymbolResolver).
Exceptions
- NotSupportedException
The binding has no readable value.
Methods
GetValue(ISymbolResolver)
Gets the value associated to this handle, resolving through resolver when
the binding is not self-contained.
public IRuntimeValue GetValue(ISymbolResolver resolver)
Parameters
resolverISymbolResolver
Returns
Remarks
👉 Verify that the binding supports GetValue.
Exceptions
Invoke(ISymbolResolver, IRuntimeValue[])
Invokes the callable entity associated to this handle.
public IRuntimeValue Invoke(ISymbolResolver resolver, IRuntimeValue[] args)
Parameters
resolverISymbolResolverargsIRuntimeValue[]
Returns
Remarks
👉 Verify that the binding supports Invoke.
Exceptions
SetValue(ISymbolResolver, IRuntimeValue)
Sets the value associated to this handle.
public void SetValue(ISymbolResolver resolver, IRuntimeValue value)
Parameters
resolverISymbolResolvervalueIRuntimeValue
Remarks
👉 Verify that the binding supports SetValue.