# OpcIncrementalNodeIdFactory Members

> Reference: Provides a factory which generates per namespace unique node identifiers as OpcNodeId instances of the Numeric type.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcIncrementalNodeIdFactory</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 [OpcNodeIdFactory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidfactory/members).

## Constructors

### OpcIncrementalNodeIdFactory

Initializes a new instance of the [OpcIncrementalNodeIdFactory](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcincrementalnodeidfactory/) class.

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

```csharp
public OpcIncrementalNodeIdFactory()
```

</div>

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

```vbnet
Public Sub New()
```

</div>

## Methods

### Create

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

| Overload | Description |
|---|---|
| [Create(OpcContext)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcincrementalnodeidfactory/members#create-opc-uafx-opccontext)<span class="api-meta">override</span> | Creates a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) just using the `context` specified. |
| [Create(OpcContext, OpcNamespace)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcincrementalnodeidfactory/members#create-opc-uafx-opccontext-opc-uafx-opcnamespace)<span class="api-meta">override</span> | Creates a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the `context` and `nodeNamespace` specified. |

#### Create(OpcContext)

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

Creates a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) just using the `context` specified.

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

```csharp
public override OpcNodeId Create(OpcContext context)
```

</div>

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

```vbnet
Public Overrides Function Create(context As OpcContext) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `context` | [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) | The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) to use to generate the new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/). |

**Returns**

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

A new instance of the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) class which defines an unique [Numeric](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidtype/#numeric) node identifier within the [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) namespace as long as the number of [Create](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcincrementalnodeidfactory/members#create-opc-uafx-opccontext) calls will not exceeed [MaxValue](https://learn.microsoft.com/dotnet/api/system.uint32.maxvalue).

**Overrides**

[Create](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidfactory/members#create-opc-uafx-opccontext)

#### Create(OpcContext, OpcNamespace)

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

Creates a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the `context` and `nodeNamespace` specified.

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

```csharp
public override OpcNodeId Create(OpcContext context, OpcNamespace nodeNamespace)
```

</div>

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

```vbnet
Public Overrides Function Create(
    context As OpcContext,
    nodeNamespace As OpcNamespace) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `context` | [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) | The [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) to use to generate the new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/). |
| `nodeNamespace` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to that the new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) have to refer to. If a null reference (Nothing in Visual Basic) is specified [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) is used. |

**Returns**

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

A new instance of the [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) class which defines an unique [Numeric](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidtype/#numeric) node identifier within the `nodeNamespace` specified as long as the number of [Create](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcincrementalnodeidfactory/members#create-opc-uafx-opccontext-opc-uafx-opcnamespace) calls will not exceed [MaxValue](https://learn.microsoft.com/dotnet/api/system.uint32.maxvalue).

**Overrides**

[Create](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeidfactory/members#create-opc-uafx-opccontext-opc-uafx-opcnamespace)
