Class VBErrorValue
Represents an Error value.
public record VBErrorValue : VBTypedValue, IEquatable<VBTypedValue>, IVBTypedValue<VBErrorValue, int>, IEquatable<IVBTypedValue<VBErrorValue, int>>, IEquatable<VBErrorValue>
- Inheritance
-
VBErrorValue
- Implements
- Derived
- Inherited Members
Remarks
👉 VBMissingValue is one too: the value of an omitted optional Variant parameter is an error value that only
IsMissing tells apart from the others.
Constructors
VBErrorValue(VBType, IBindingHandle)
Creates an error value whose Variant subtype is typeInfo rather than Error itself.
protected VBErrorValue(VBType typeInfo, IBindingHandle handle)
Parameters
typeInfoVBTypeThe data type the value reports.
handleIBindingHandleThe binding holding the error code.
VBErrorValue(IBindingHandle)
public VBErrorValue(IBindingHandle handle)
Parameters
handleIBindingHandle
VBErrorValue(int)
public VBErrorValue(int value = 0)
Parameters
valueint
Properties
Size
The allocated size (in bytes) of this value.
public override int Size { get; }
Property Value
Value
Gets the underlying managed value corresponding to this typed value.
public int Value { get; }
Property Value
Methods
Equals(IVBTypedValue<VBErrorValue, int>?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IVBTypedValue<VBErrorValue, int>? other)
Parameters
otherIVBTypedValue<VBErrorValue, int>An object to compare with this object.