Class VBVariantValue
Represents a Variant value.
public record VBVariantValue : VBTypedValue, IEquatable<VBTypedValue>, IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>, IEquatable<IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>>, IEquatable<VBVariantValue>
- Inheritance
-
VBVariantValue
- Implements
- Inherited Members
Remarks
👉 The managed type of this value is a VBRuntimeVariantValue
Constructors
VBVariantValue(VBTypedValue)
Represents a Variant value.
public VBVariantValue(VBTypedValue TypedValue)
Parameters
TypedValueVBTypedValueThe wrapped typed value (may be another
Variant).
Remarks
👉 The managed type of this value is a VBRuntimeVariantValue
VBVariantValue(IBindingHandle, VBTypedValue)
Creates a Variant wrapping typedValue and bound to handle.
The Value / subtype plumbing is unchanged (see the complex-value follow-up).
public VBVariantValue(IBindingHandle handle, VBTypedValue typedValue)
Parameters
handleIBindingHandletypedValueVBTypedValue
Properties
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
TypedValue
The wrapped typed value (may be another Variant).
public VBTypedValue TypedValue { get; init; }
Property Value
Value
Gets the underlying managed value corresponding to this typed value.
public VBRuntimeVariantValue Value { get; init; }
Property Value
Methods
Equals(IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBVariantValue, VBRuntimeVariantValue>? other)
Parameters
otherIVBTypedValue<VBVariantValue, VBRuntimeVariantValue>An object to compare with this object.
Returns
WithValue(VBTypedValue)
public VBVariantValue WithValue(VBTypedValue value)
Parameters
valueVBTypedValue