# OpcEncodingType Enum

<span class="api-meta">since v2.8</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>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines the different types / formats of information encoding supported.

## Syntax

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

```csharp
public enum OpcEncodingType
```

</div>

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

```vbnet
Public Enum OpcEncodingType
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype) → [Enum](https://learn.microsoft.com/dotnet/api/system.enum) → **OpcEncodingType**

## Fields

| Name | Value | Description |
|---|---|---|
| <a id="binary"></a>`Binary` | `0` | Encodes information using its binary representation 'byte-by-byte' according their endianess. This type of encoding additionally uses meta-fields (within the binary data-stream) to identify for example the number of characters in a [string](https://learn.microsoft.com/dotnet/api/system.string) or the number of items in an array. The resulting binary data-stream is transported with the most less effort in comparison will all supported encoding types. |
| <a id="xml"></a>`Xml` | `1` | Encodes information using XML-based data-serialization. The thereby [string](https://learn.microsoft.com/dotnet/api/system.string)-based representation of the information encoded describes the transported data in a human readable way. |

## Applies to

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