# OpcArgumentAttribute Members

> Reference: Specifies the name, the description and the default value of an argument of a method node for a parameter or the return value of the callback of the method node, in place of the values determined from the parameter.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcArgumentAttribute</a></dd>
<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>
</dl>

Inherits members from [Attribute](https://learn.microsoft.com/dotnet/api/system.attribute).

## Constructors

### OpcArgumentAttribute

Initializes a new instance of the [OpcArgumentAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcargumentattribute/) class using the specified `name` of the argument.

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

```csharp
public OpcArgumentAttribute(string name)
```

</div>

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

```vbnet
Public Sub New(name As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the argument, or a null reference (Nothing in Visual Basic), an empty string or white space to use the name of the parameter. |

## Properties

### DefaultValue

Gets or sets the default value of the argument.

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

```csharp
public object DefaultValue { get; set; }
```

</div>

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

```vbnet
Public Property DefaultValue As Object
```

</div>

**Property value**

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

The default value of the argument, or a null reference (Nothing in Visual Basic) to use the default value of the parameter (for a value type without a default value of the parameter the default value of the type).

### Description

Gets or sets the description of the argument.

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

```csharp
public string Description { get; set; }
```

</div>

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

```vbnet
Public Property Description As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The description of the argument, or a null reference (Nothing in Visual Basic), an empty string or white space if the argument has no description.

### Name

Gets the name of the argument.

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

```csharp
public string Name { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Name As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The name of the argument, or a null reference (Nothing in Visual Basic), an empty string or white space to use the name of the parameter.
