# OpcArrayDimensions Class

<span class="api-meta">since v2.9</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcArrayDimensions Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides the lengths of array dimensions.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public class OpcArrayDimensions
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Class OpcArrayDimensions
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcArrayDimensions**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a href="https://learn.microsoft.com/dotnet/api/system.uint32">UInt32</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a href="https://learn.microsoft.com/dotnet/api/system.uint32">UInt32</a>&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a href="https://learn.microsoft.com/dotnet/api/system.uint32">UInt32</a>&gt;</li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcArrayDimensions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#opcarraydimensions) | Initializes a new instance of the OpcArrayDimensions class with the `lengths` of dimensions to represent. |

## Properties

| Name | Description |
|---|---|
| [Length](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#length) | Gets the total number of elements in all the dimensions. |
| [Rank](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#rank) | Gets the rank (number of dimensions). |

## Methods

| Name | Description |
|---|---|
| [CreateArray](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#createarray)<span class="api-meta">since v2.22</span> | Creates an [Array](https://learn.microsoft.com/dotnet/api/system.array) of the specified `elementType` and dimensions represented. |
| [GetEnumerator](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#getenumerator) | Returns an enumerator that iterates through the dimensions. |
| [GetLength](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#getlength) | Gets a 32-bit integer that represents the number of elements in the specified dimension of the array. |
| [GetLowerBound](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#getlowerbound) | Gets the index of the first element of the specified dimension in the array. |
| [GetUpperBound](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#getupperbound) | Gets the index of the last element of the specified dimension in the array. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#tostring)<span class="api-meta">override</span> | Returns a string that represents the OpcArrayDimensions. |

## Indexers

| Name | Description |
|---|---|
| [Item](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcarraydimensions/members#item) | Gets the length of the `dimension` specified. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.9–v2.59 |
