OPC Studio User's Guide and Reference
ToArray Method (_ElasticVector)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections.ComTypes Namespace > _ElasticVector Interface : ToArray Method
Obtains the underlying array object of the elastic vector.
Syntax
'Declaration
 
<NotNullAttribute()>
Function ToArray() As Object()
'Usage
 
Dim instance As _ElasticVector
Dim value() As Object
 
value = instance.ToArray()
[NotNull()]
object[] ToArray()
[NotNull()]
array<Object^>^ ToArray(); 

Return Value

Returns the array object currently used by the elastic vector to store its elements. The array has the same lower and upper bounds as the elastic vector.

This method never returns null (Nothing in Visual Basic).

The individual elements of the returned value can be null (Nothing in Visual Basic).

Remarks

This member or type is for use from COM. It is not meant to be used from .NET or Python. Refer to the corresponding .NET member or type instead, if you are developing in .NET or Python.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also