QuickOPC 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
 
<ElementsCanBeNullAttribute()>
<NotNullAttribute()>
Function ToArray() As Object()
'Usage
 
Dim instance As _ElasticVector
Dim value() As Object
 
value = instance.ToArray()
[ElementsCanBeNull()]
[NotNull()]
object[] ToArray()
[ElementsCanBeNull()]
[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.
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