# OpcArgument Class

<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">OpcArgument Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Describes an argument used by a method either as an input or an output argument.

## Syntax

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

```csharp
public class OpcArgument
```

</div>

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

```vbnet
Public Class OpcArgument
```

</div>

## Inheritance

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

## Constructors

| Name | Description |
|---|---|
| [OpcArgument](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#opcargument)<span class="api-meta">22 overloads</span> | Initializes a new instance of the OpcArgument class using the `name` of the argument to define an argument of the type [object](https://learn.microsoft.com/dotnet/api/system.object). |

## Properties

| Name | Description |
|---|---|
| [ArrayDimensions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#arraydimensions)<span class="api-meta">since v2.8</span> | Gets the length for each dimension of an array value of the argument represented. |
| [ArrayLength](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#arraylength)<span class="api-meta">since v2.8</span> | Gets the total number of elements in all the dimensions of the array value of the argument represented. |
| [ArrayRank](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#arrayrank)<span class="api-meta">since v2.8</span> | Gets the rank (number of dimensions) of the array value of the argument represented. |
| [DataType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#datatype) | Gets the underlying built-in data type used by the argument. |
| [DataTypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#datatypeid) | Gets the node identifier of the data type node identifying the type of argument. |
| [DefaultValue](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#defaultvalue) | Gets the value of the argument that is by default used in case there is no custom value specified for the argument. |
| [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#description) | Gets the textual description of the use of the argument represented. |
| [Descriptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#descriptions)<span class="api-meta">since v2.12</span> | Gets the [OpcArgumentGlobalization](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargumentglobalization/) instance used to control the localization and other globalization related tasks for the [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#description) of the current attribute. |
| [IsArray](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#isarray)<span class="api-meta">since v2.8</span> | Gets a value indicating whether the value of the argument represented is an array. |
| [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#name) | Gets the name of the argument. |

## Methods

| Name | Description |
|---|---|
| [GetArrayLength](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#getarraylength)<span class="api-meta">since v2.8</span> | Gets a 32-bit integer that represents the number of elements in the specified dimension of the array value of the argument. |
| [GetArrayLowerBound](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#getarraylowerbound)<span class="api-meta">since v2.8</span> | Gets the index of the first element of the specified dimension in the array value of the argument. |
| [GetArrayUpperBound](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargument/members#getarrayupperbound)<span class="api-meta">since v2.8</span> | Gets the index of the last element of the specified dimension in the array value of the argument. |

## Applies to

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