OPC Studio User's Guide and Reference
ArrayDimensions Property (UADataVariable)



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.NodeSpace Namespace > UADataVariable Class : ArrayDimensions Property
The size of each dimension of the array value.
Syntax
'Declaration
 
<NotNullAttribute()>
Public ReadOnly Property ArrayDimensions As Int32Collection
'Usage
 
Dim instance As UADataVariable
Dim value As Int32Collection
 
value = instance.ArrayDimensions
[NotNull()]
public Int32Collection ArrayDimensions {get;}
[NotNull()]
public:
property Int32Collection^ ArrayDimensions {
   Int32Collection^ get();
}

Property Value

A collection of integers where each integer represents the maximum size of the array in that dimension, or 0 if the maximum is unknown.

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

Remarks
This property is relevant for variables that hold array values. Each element in the collection represents a dimension of the array, and the value of the element represents the maximum size of the array in that dimension. If the maximum size of certain dimension is unknown, the value of corresponding element is 0.

For scalar variables, this collection is empty.

You can modify the contents of this collection. If you want to replace the whole array dimensions collection, use the UADataVariableExtension.SetArrayDimensions method.

The specified array dimensions will be exposed to OPC UA clients via the OpcLabs.EasyOpc.UA.UAAttributeId.ArrayDimensions attribute. In addition, OPC Wizard will enforce the maximum array bounds automatically (where the specified array dimension is not 0).

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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