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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Collections Namespace > ElasticVector Class : Assign Method
The array object to be used by the elastic vector.

The value of this parameter cannot be null (Nothing in Visual Basic).

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

Assigns the underlying array object of the elastic vector.
Syntax
'Declaration
 
Public Sub Assign( _
   ByVal objectArray() As Object _
) 
'Usage
 
Dim instance As ElasticVector
Dim objectArray() As Object
 
instance.Assign(objectArray)
public void Assign( 
   object[] objectArray
)
public:
void Assign( 
   array<Object^>^ objectArray
) 

Parameters

objectArray
The array object to be used by the elastic vector.

The value of this parameter cannot be null (Nothing in Visual Basic).

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

Remarks

The old content of the elastic vector is lost.

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