PropertyObject.GetValInterfaceByOffset
- Updated2024-10-09
- 1 minute(s) read
PropertyObject.GetValInterfaceByOffset
Syntax
PropertyObject.GetValInterfaceByOffset( arrayOffset, options)
Return Value
IUnknown pointer value of the array element.
Purpose
Returns the value of the ActiveX Automation Reference array element the arrayOffset parameter specifies. The object is returned as an IUnknown pointer.
Remarks
This method is valid only for array objects. This method returns a NULL reference, if that is what the property contains.
This method and the PropertyObject.GetValIDispatch method apply to the PropValType_Reference value type. The PropertyObject.GetValInterface and PropertyObject.SetValInterface methods are meant for advanced users who want to store arbitrary interfaces in TestStand reference properties.
Parameters
arrayOffset As Long
[In] Specifies a zero-based number representing the offset of an array element in the one-dimensional physical storage of the array. The offset is in terms of the number of elements.
options As Long
[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options.
See Also
PropertyObject.GetValIDispatchByOffset
PropertyObject.GetValInterface
PropertyObject.SetValInterface
PropertyObject.SetValInterfaceByOffset
Thread Safety of the PropertyObject API and TestStand Variables