# OpcEncodingOptions Members

> Reference: Provides the setup used to control encoding results.

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

## Constructors

### OpcEncodingOptions

Initializes a new instance of the [OpcEncodingOptions](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencodingoptions/) class.

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

```csharp
public OpcEncodingOptions()
```

</div>

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

```vbnet
Public Sub New()
```

</div>

## Properties

### MaxByteStringLineLength

Gets or sets a value used to limit the maximum number of characters used in a line to encode a byte string as a base64 encoded [string](https://learn.microsoft.com/dotnet/api/system.string).

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

```csharp
public int? MaxByteStringLineLength { get; set; }
```

</div>

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

```vbnet
Public Property MaxByteStringLineLength As Integer?
```

</div>

**Property value**

[Nullable](https://learn.microsoft.com/dotnet/api/system.nullable-1)&lt;[Int32](https://learn.microsoft.com/dotnet/api/system.int32)&gt;

The maximum number of characters used in a line or a null reference (Nothing in Visual Basic) if a byte string is to be encoded into a single line.

**Remarks**

Using a maximum number of charachter results into a multi-line encoded byte string.

### OmitDefaultValues

Gets or sets a value indicating whether values used by a specific type as its initial value (= default value) shall not encoded (= omitted).

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

```csharp
public bool OmitDefaultValues { get; set; }
```

</div>

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

```vbnet
Public Property OmitDefaultValues As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if default values are to be omitted; otherwise the value false. The default value is false.

**Remarks**

The default value of integer values is zero, while the default value of a [Guid](https://learn.microsoft.com/dotnet/api/system.guid) is [Empty](https://learn.microsoft.com/dotnet/api/system.guid.empty). For reference types the default value might be a type specific default value and a null reference (Nothing in Visual Basic).
