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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections Namespace > ElasticVector Class : ToArray Method
Obtains the underlying array object of the elastic vector.
Syntax
'Declaration
 
Public Function ToArray() As Object()
'Usage
 
Dim instance As ElasticVector
Dim value() As Object
 
value = instance.ToArray()
public object[] ToArray()
public:
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).

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