# OpcStructEncodingField Class

> 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).

<span class="api-meta">since v2.54</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">OpcStructEncodingField Members</a></dd>
</dl>

Represents a field of a structure defined using [OpcStruct](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstruct/) which is a bit of the encoding mask of the structure, e.g. to control the existence of an optional field (see [OpcMemberSwitch](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcmemberswitch/)).

## Syntax

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

```csharp
public class OpcStructEncodingField : OpcStructField
```

</div>

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

```vbnet
Public Class OpcStructEncodingField
    Inherits OpcStructField
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcStructField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructfield/) → **OpcStructEncodingField**

## Remarks

The field is not part of the data type definition of the structure.

## Constructors

| Name | Description |
|---|---|
| [OpcStructEncodingField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructencodingfield/members#opcstructencodingfield)<span class="api-meta">2 overloads</span> | Initializes a new instance of the OpcStructEncodingField class using the unique `name` of the structure field to define. |

Inherits members from [OpcStructField](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstructfield/members).

## Applies to

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