# OpcNodeTypeAttribute Members

> Reference: Defines the identifier of a custom node type which is represented by the Type on that this attribute is applied.

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

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

## Constructors

### OpcNodeTypeAttribute

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

| Overload | Description |
|---|---|
| [OpcNodeTypeAttribute(byte\[\])](#opcnodetypeattribute-system-byte-array) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(byte\[\], int)](#opcnodetypeattribute-system-byte-array-system-int32) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(byte\[\], string)](#opcnodetypeattribute-system-byte-array-system-string) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node. |
| [OpcNodeTypeAttribute(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-int32) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(int, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-int32-system-int32) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(int, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-int32-system-string) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node. |
| [OpcNodeTypeAttribute(uint)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-uint32) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(uint, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-uint32-system-int32) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(uint, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-uint32-system-string) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node. |
| [OpcNodeTypeAttribute(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-string) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(string, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-string-system-int32) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node. |
| [OpcNodeTypeAttribute(string, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#opcnodetypeattribute-system-string-system-string) | Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node. |

#### OpcNodeTypeAttribute(byte\[\])

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(byte[] id)
```

</div>

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

```vbnet
Public Sub New(id As Byte())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque value of the node type node. |

#### OpcNodeTypeAttribute(byte\[\], int)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(byte[] id, int namespaceIndex)
```

</div>

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

```vbnet
Public Sub New(id As Byte(), namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque value of the node type node. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace to that the node type node belongs. |

#### OpcNodeTypeAttribute(byte\[\], string)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(byte[] id, string namespaceUri)
```

</div>

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

```vbnet
Public Sub New(id As Byte(), namespaceUri As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [Byte](https://learn.microsoft.com/dotnet/api/system.byte)[] | The opaque value of the node type node. |
| `namespaceUri` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The namespace URI that the [Id](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#id) should refer to. |

#### OpcNodeTypeAttribute(int)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(int id)
```

</div>

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

```vbnet
Public Sub New(id As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric identifier of the node type node. |

#### OpcNodeTypeAttribute(int, int)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(int id, int namespaceIndex)
```

</div>

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

```vbnet
Public Sub New(id As Integer, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric identifier of the node type node. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace to that the node type node belongs. |

#### OpcNodeTypeAttribute(int, string)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(int id, string namespaceUri)
```

</div>

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

```vbnet
Public Sub New(id As Integer, namespaceUri As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The numeric identifier of the node type node. |
| `namespaceUri` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The namespace URI that the [Id](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#id) should refer to. |

#### OpcNodeTypeAttribute(uint)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(uint id)
```

</div>

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

```vbnet
Public Sub New(id As UInteger)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric identifier of the node type node. |

#### OpcNodeTypeAttribute(uint, int)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(uint id, int namespaceIndex)
```

</div>

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

```vbnet
Public Sub New(id As UInteger, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric identifier of the node type node. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace to that the node type node belongs. |

#### OpcNodeTypeAttribute(uint, string)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(uint id, string namespaceUri)
```

</div>

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

```vbnet
Public Sub New(id As UInteger, namespaceUri As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [UInt32](https://learn.microsoft.com/dotnet/api/system.uint32) | The numeric identifier of the node type node. |
| `namespaceUri` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The namespace URI that the [Id](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#id) should refer to. |

#### OpcNodeTypeAttribute(string)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(string id)
```

</div>

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

```vbnet
Public Sub New(id As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual identifier of the node type node. |

#### OpcNodeTypeAttribute(string, int)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceIndex` to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(string id, int namespaceIndex)
```

</div>

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

```vbnet
Public Sub New(id As String, namespaceIndex As Integer)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual identifier of the node type node. |
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the namespace to that the node type node belongs. |

#### OpcNodeTypeAttribute(string, string)

Initializes a new instance of the [OpcNodeTypeAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/) class using the `id` and `namespaceUri` specified to use to identify the according node type node.

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

```csharp
public OpcNodeTypeAttribute(string id, string namespaceUri)
```

</div>

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

```vbnet
Public Sub New(id As String, namespaceUri As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `id` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The textual identifier of the node type node. |
| `namespaceUri` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The namespace URI that the [Id](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodetypeattribute/members#id) should refer to. |

## Properties

### Description

Gets or sets a human readable text that describes the node type.

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

```csharp
public string Description { get; set; }
```

</div>

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

```vbnet
Public Property Description As String
```

</div>

**Property value**

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

A value which captures any semantic information that whould help a human to unterstand what is contained in the node type.

### Id

Gets the node identifier used to define the node type node of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to that the attribute has been applied.

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

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

</div>

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

```vbnet
Public ReadOnly Property Id 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 node type node of the [Type](https://learn.microsoft.com/dotnet/api/system.type) to that the attribute has been applied.
