# OpcStructEncodingField Members

> Reference: Represents a field of a structure defined using OpcStruct which is a bit of the encoding mask of the structure, e.g. to control the existence of an optional field (see OpcMemberSwitch).

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcStructEncodingField</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 [OpcStructField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructfield/members).

## Constructors

### OpcStructEncodingField

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [OpcStructEncodingField(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/members#opcstructencodingfield-system-string) | Initializes a new instance of the [OpcStructEncodingField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/) class using the unique `name` of the structure field to define. |
| [OpcStructEncodingField(string, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/members#opcstructencodingfield-system-string-system-string) | Initializes a new instance of the [OpcStructEncodingField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/) class using the unique `name` and the `description` of the structure field to define. |

#### OpcStructEncodingField(string)

Initializes a new instance of the [OpcStructEncodingField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/) class using the unique `name` of the structure field to define.

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

```csharp
public OpcStructEncodingField(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 structure field which unique identifies the field in the structure. |

#### OpcStructEncodingField(string, string)

Initializes a new instance of the [OpcStructEncodingField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/) class using the unique `name` and the `description` of the structure field to define.

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

```csharp
public OpcStructEncodingField(string name, string description)
```

</div>

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

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

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the structure field which unique identifies the field in the structure. |
| `description` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The description of the purpose of the structure field. |
