# OpcNodeTypeMemberAttribute Class

> Reference: Declares a field or property of a custom node type, to that the member belongs on that this attribute is applied, with different Name and Type information to use when reading and writing the member.

<span class="api-meta">since v2.20</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">OpcNodeTypeMemberAttribute Members</a></dd>
</dl>

Declares a field or property of a custom node type, to that the member belongs on that this attribute is applied, with different [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#name) and [Type](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#type) information to use when reading and writing the member. By default the [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#name) and the [Type](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#type) are determined by the [Name](https://learn.microsoft.com/dotnet/api/system.reflection.memberinfo.name) and the [FieldType](https://learn.microsoft.com/dotnet/api/system.reflection.fieldinfo.fieldtype) or [PropertyType](https://learn.microsoft.com/dotnet/api/system.reflection.propertyinfo.propertytype). In case there a different name or a different [Type](https://learn.microsoft.com/dotnet/api/system.type) is to be used for a member use this attribute to declare them. Keep in mind to declare only different types which implement [IConvertible](https://learn.microsoft.com/dotnet/api/system.iconvertible) supporting the [Type](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#type) specified; otherwise declare the desired type directly instead of using this attribute. Additionally its possible to derive from [OpcData](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdata/) and use [IOpcDataStore](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcdatastore/) instances with properties to implement custom data convertion.

## Syntax

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

```csharp
public class OpcNodeTypeMemberAttribute : Attribute
```

</div>

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

```vbnet
<AttributeUsage(AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcNodeTypeMemberAttribute
    Inherits Attribute
```

</div>

## Inheritance

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

## Constructors

| Name | Description |
|---|---|
| [OpcNodeTypeMemberAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#opcnodetypememberattribute)<span class="api-meta">2 overloads</span> | Initializes a new instance of the OpcNodeTypeMemberAttribute class. |

## Properties

| Name | Description |
|---|---|
| [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#description) | Gets or sets a human readable text that describes the member. |
| [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#name) | Gets the alternative name to use for the member this attribute belongs to. |
| [Type](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypememberattribute/members#type) | Gets or sets the alternative [Type](https://learn.microsoft.com/dotnet/api/system.type) to use for the member this attribute belongs to. |

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

## Applies to

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