# OpcTypeResolveEventArgs Members

> Reference: Provides the event data for events used to resolve missing Type information.

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

Inherits members from [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs).

## Constructors

### OpcTypeResolveEventArgs

<span class="api-meta">2 overloads</span>

| Overload | Description |
|---|---|
| [OpcTypeResolveEventArgs(OpcNodeId)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#opctyperesolveeventargs-opc-uafx-opcnodeid) | Initializes a new instance of the [OpcTypeResolveEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/) using the `typeId` of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve. |
| [OpcTypeResolveEventArgs(OpcNodeId, OpcEncoding)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#opctyperesolveeventargs-opc-uafx-opcnodeid-opc-uafx-opcencoding) | Initializes a new instance of the [OpcTypeResolveEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/) using the `typeId` and `encoding` of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve. |

#### OpcTypeResolveEventArgs(OpcNodeId)

Initializes a new instance of the [OpcTypeResolveEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/) using the `typeId` of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve.

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

```csharp
public OpcTypeResolveEventArgs(OpcNodeId typeId)
```

</div>

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

```vbnet
Public Sub New(typeId As OpcNodeId)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `typeId` is a null reference (Nothing in Visual Basic). |

#### OpcTypeResolveEventArgs(OpcNodeId, OpcEncoding)

Initializes a new instance of the [OpcTypeResolveEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/) using the `typeId` and `encoding` of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve.

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

```csharp
public OpcTypeResolveEventArgs(OpcNodeId typeId, OpcEncoding encoding)
```

</div>

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

```vbnet
Public Sub New(typeId As OpcNodeId, encoding As OpcEncoding)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `typeId` | [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) | The [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve. |
| `encoding` | [OpcEncoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencoding/) | The [OpcEncoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencoding/) the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve have to support. |

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `typeId` or `encoding` is a null reference (Nothing in Visual Basic). |

## Properties

### Encoding

Gets the encoding which is to be supported by the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve.

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

```csharp
public OpcEncoding Encoding { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Encoding As OpcEncoding
```

</div>

**Property value**

[OpcEncoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencoding/)

An instance of the [OpcEncoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcencoding/), if the kind of encoding is relevant or a null reference (Nothing in Visual Basic) if the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve does have to support a specific encoding.

### ResolvedType

Gets or sets the [Type](https://learn.microsoft.com/dotnet/api/system.type) which has been resolved by one of the event handlers using the [TypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#typeid) and [Encoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#encoding) specified.

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

```csharp
public Type ResolvedType { get; set; }
```

</div>

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

```vbnet
Public Property ResolvedType As Type
```

</div>

**Property value**

[Type](https://learn.microsoft.com/dotnet/api/system.type)

An instance of the [Type](https://learn.microsoft.com/dotnet/api/system.type) class which has been resolved using the type metadata specified ([TypeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#typeid) and [Encoding](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#encoding)) or a null reference (Nothing in Visual Basic) in case there not yet a [Type](https://learn.microsoft.com/dotnet/api/system.type) could be resolved by one of the event handlers registered.

**Remarks**

The event which uses the [OpcTypeResolveEventArgs](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/) passes the event data to the event handlers in the order in which they have been registered in the invocation list of the event. As long [ResolvedType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#resolvedtype) is a null reference (Nothing in Visual Basic). Subsequent registered event handlers are not invoked as soon [ResolvedType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opctyperesolveeventargs/members#resolvedtype) is not a null reference (Nothing in Visual Basic).

### TypeId

Gets the identifier of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve.

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

```csharp
public OpcNodeId TypeId { get; }
```

</div>

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

```vbnet
Public ReadOnly Property TypeId As OpcNodeId
```

</div>

**Property value**

[OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/)

An instance of the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) which identifies the [Type](https://learn.microsoft.com/dotnet/api/system.type) to resolve.
