# OpcRawObject Class

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

Represents the value of a structured data type which could not be decoded, as its sender encoded it.

## Syntax

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

```csharp
public sealed class OpcRawObject
```

</div>

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

```vbnet
Public NotInheritable Class OpcRawObject
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → **OpcRawObject**

## Remarks

A value is provided as an OpcRawObject if its data type is not known to decode it, for example if a client does not resolve the data types of the server. Use [Decode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#decode) to decode the value once its type is known.

Writing an OpcRawObject as a value passes it on unchanged in the [Encoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#encoding) it was received in.

## Properties

| Name | Description |
|---|---|
| [Encoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#encoding) | Gets the encoding in which the value is encoded. |
| [RawData](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#rawdata) | Gets the encoded value. |

## Methods

| Name | Description |
|---|---|
| [Decode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#decode) | Decodes the [RawData](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#rawdata) as the `T` defined. |
| [GetTypeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#gettypeinfo) | Gets the [OpcDataTypeInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdatatypeinfo/) of the data type of the value represented. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#tostring)<span class="api-meta">override</span> | Returns a [string](https://learn.microsoft.com/dotnet/api/system.string) representing the [Encoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcrawobject/members#encoding) of the current OpcRawObject. |

## Applies to

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