# OpcDataSurrogate Members

> Reference: Provides a surrogate used to transport the encoding of data structures its structural information is resolved dynamically at runtime.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcDataSurrogate</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>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Constructors

### OpcDataSurrogate

<span class="api-meta">protected</span>

Initializes a new instance of the [OpcDataSurrogate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatasurrogate/) class using the identifier of the encoding associated with and transported by the new surrogate.

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

```csharp
protected OpcDataSurrogate(string encodingId)
```

</div>

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

```vbnet
Protected Sub New(encodingId As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `encodingId` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) representing the identifier of the encoding of the data structure to be the surrogate of. |

## Properties

### EncodingId

Gets the identifier of the encoding of the data structure.

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

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

</div>

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

```vbnet
Public ReadOnly Property EncodingId As String
```

</div>

**Property value**

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

The [string](https://learn.microsoft.com/dotnet/api/system.string) representing the identifier of the encoding of the data structure the current [OpcDataSurrogate](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatasurrogate/) is used for.
