# OpcNamespace Members

> Reference: Represents a nominal space used to categorize information like nodes, types, identifiers, etc. under a logical topic.

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

## Fields

### UriHost

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

Specifies that an [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) is a pointer to a OPC UA namespace without a specific namespace [Host](https://learn.microsoft.com/dotnet/api/system.uri.host).

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

```csharp
public static readonly string UriHost
```

</div>

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

```vbnet
Public Shared ReadOnly UriHost As String
```

</div>

**Field value**

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

### UriScheme

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

Specifies that an [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) is a pointer to a OPC UA namespace without a specific namespace [Scheme](https://learn.microsoft.com/dotnet/api/system.uri.scheme).

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

```csharp
public static readonly string UriScheme
```

</div>

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

```vbnet
Public Shared ReadOnly UriScheme As String
```

</div>

**Field value**

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

## Properties

### Default

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

Gets the default namespace used in cases there the concrete does not matter or is just unknown.

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

```csharp
public static OpcNamespace Default { get; }
```

</div>

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

```vbnet
Public Shared ReadOnly Property [Default] As OpcNamespace
```

</div>

**Property value**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class its [IsDefault](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#isdefault) property always returns the value true. While its [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) property is equals to zero, its [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) and [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value) properties always return a null reference (Nothing in Visual Basic).

### Index

Gets the index of the namespace within all namespaces of a server.

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

```csharp
public int Index { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Index As Integer
```

</div>

**Property value**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

The index value which refers to the namespace in the namespace array of the server this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) represents.

**Remarks**

The available namespaces of a server can be retrieved through reading the value of the namespaces-node using the node identifier 'OpcObjectTypes.Server.Namespaces'.

### IsAbsolute

Gets a value indicating whether the namespace is absolute.

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

```csharp
public bool IsAbsolute { get; }
```

</div>

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

```vbnet
Public ReadOnly Property IsAbsolute As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if an [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) or [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value) is given; otherwise the value false.

### IsDefault

Gets a value indicating whether the namespace defines the default namespace without to refer to a specific address space.

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

```csharp
public bool IsDefault { get; }
```

</div>

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

```vbnet
Public ReadOnly Property IsDefault As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the namespace points to the generic address space; otherwise the value false if the namespace points to a foundation or user defined address space.

### IsResolved

Gets a value indicating whether the namespace is resolved regarding its [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index), [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) and [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value).

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

```csharp
public bool IsResolved { get; }
```

</div>

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

```vbnet
Public ReadOnly Property IsResolved As Boolean
```

</div>

**Property value**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) is not equals zero and [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) and [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value) are not a null reference (Nothing in Visual Basic).

**Remarks**

In case there this property provides the value true any call to [Resolve](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#resolve) will have no effect to the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) nor to the [Uri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#uri) and [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value) properties.

### Scope

<span class="api-meta">since v2.12</span>

Gets scope within the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) has been declared and its metadata applies to.

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

```csharp
public OpcNamespaceScope Scope { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Scope As OpcNamespaceScope
```

</div>

**Property value**

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

One of the members defined by the [OpcNamespaceScope](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespacescope/) enumeration.

### Uri

Gets the uniform resource identifier (URI) of the namespace represented and referred to by the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index).

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

```csharp
public Uri Uri { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Uri As Uri
```

</div>

**Property value**

[Uri](https://learn.microsoft.com/dotnet/api/system.uri)

The [Uri](https://learn.microsoft.com/dotnet/api/system.uri) to that the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) refers using the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index).

### Value

<span class="api-meta">since v2.8</span>

Gets the intrinsic value of the namespace represented and referred to by the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index).

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

```csharp
public string Value { get; }
```

</div>

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

```vbnet
Public ReadOnly Property Value As String
```

</div>

**Property value**

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

The [string](https://learn.microsoft.com/dotnet/api/system.string) to that the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) refers using the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index).

## Methods

### Clear

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

Empties the known namespaces.

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

```csharp
public static void Clear()
```

</div>

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

```vbnet
Public Shared Sub Clear()
```

</div>

**Remarks**

All namespaces retrieved until [Clear](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#clear) is called are no longer referenced by the global / static namespace cache. Any so far retrieved namespaces are kept resolved / existing / valid and kept unchanged by subsequent global namespace operations, because they are not longer tracked nor updated by further global namespace retrieval nor resolve operations.

### CompareTo

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

| Overload | Description |
|---|---|
| [CompareTo(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#compareto-system-object) | Compares the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) with the `other`. |
| [CompareTo(OpcNamespace)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#compareto-opc-uafx-opcnamespace) | Compares the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) with another [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

#### CompareTo(object)

Compares the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) with the `other`.

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

```csharp
public int CompareTo(object other)
```

</div>

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

```vbnet
Public Function CompareTo(other As Object) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to compare with this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)).

**Implements**

[CompareTo(object)](https://learn.microsoft.com/dotnet/api/system.icomparable.compareto)

#### CompareTo(OpcNamespace)

Compares the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) with another [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public int CompareTo(OpcNamespace other)
```

</div>

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

```vbnet
Public Function CompareTo(other As OpcNamespace) As Integer
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [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 compare with this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

A 32-bit signed integer that indicates the relative order of the objects being compared ([CompareTo(T)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)).

**Implements**

[CompareTo(OpcNamespace)](https://learn.microsoft.com/dotnet/api/system.icomparable-1.compareto)

### Create

<span class="api-meta">static · 4 overloads</span>

| Overload | Description |
|---|---|
| [Create(Uri)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#create-system-uri)<span class="api-meta">static</span> | Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) from the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) specified. |
| [Create(Uri, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#create-system-uri-system-int32)<span class="api-meta">static · since v2.8</span> | Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) from the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) specified. |
| [Create(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#create-system-string)<span class="api-meta">static · since v2.8</span> | Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) using the `value` specified. |
| [Create(string, int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#create-system-string-system-int32)<span class="api-meta">static · since v2.8</span> | Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) using the `value` and `index` specified. |

#### Create(Uri)

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

Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) from the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) specified. If `uri` provides [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) information, the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) is used for the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) created.

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

```csharp
public static OpcNamespace Create(Uri uri)
```

</div>

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

```vbnet
Public Shared Function Create(uri As Uri) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `uri` | [Uri](https://learn.microsoft.com/dotnet/api/system.uri) | A [Uri](https://learn.microsoft.com/dotnet/api/system.uri) that contains a namespace. |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class.

**Exceptions**

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

#### Create(Uri, int)

<span class="api-meta">static · since v2.8</span>

Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) from the [Uri](https://learn.microsoft.com/dotnet/api/system.uri) specified. If `uri` provides [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) information, the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) is used for the [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) created, if `index` not greater than zero.

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

```csharp
public static OpcNamespace Create(Uri uri, int index)
```

</div>

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

```vbnet
Public Shared Function Create(uri As Uri, index As Integer) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `uri` | [Uri](https://learn.microsoft.com/dotnet/api/system.uri) | A [Uri](https://learn.microsoft.com/dotnet/api/system.uri) that contains a namespace. |
| `index` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The positive number which identifies the namespace. A value within the range of zero to [MaxValue](https://learn.microsoft.com/dotnet/api/system.uint16.maxvalue). |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `uri` is a null reference (Nothing in Visual Basic). |
| [ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception) | The `index` is less than zero or greater than [MaxValue](https://learn.microsoft.com/dotnet/api/system.uint16.maxvalue). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `uri` is not a valid namespace. |

#### Create(string)

<span class="api-meta">static · since v2.8</span>

Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) using the `value` specified.

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

```csharp
public static OpcNamespace Create(string value)
```

</div>

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

```vbnet
Public Shared Function Create(value As String) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) value or a null reference (Nothing in Visual Basic) of the namespace to represent. |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class.

#### Create(string, int)

<span class="api-meta">static · since v2.8</span>

Creates a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) using the `value` and `index` specified.

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

```csharp
public static OpcNamespace Create(string value, int index)
```

</div>

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

```vbnet
Public Shared Function Create(value As String, index As Integer) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) value or a null reference (Nothing in Visual Basic) of the namespace to represent and referred to by the `index`. |
| `index` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The positive number which identifies the namespace. A value within the range of zero to [MaxValue](https://learn.microsoft.com/dotnet/api/system.uint16.maxvalue). |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentOutOfRangeException](https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception) | The `index` is less than zero or greater than [MaxValue](https://learn.microsoft.com/dotnet/api/system.uint16.maxvalue). |

### Equals

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

| Overload | Description |
|---|---|
| [Equals(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#equals-system-object)<span class="api-meta">override</span> | Determines whether the specified `other` is equal to this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |
| [Equals(OpcNamespace)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#equals-opc-uafx-opcnamespace) | Determines whether the specified `other` is equal to this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

#### Equals(object)

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

Determines whether the specified `other` is equal to this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public override bool Equals(object other)
```

</div>

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

```vbnet
Public Overrides Function Equals(other As Object) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to compare to the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is equal to the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/); otherwise the value false.

**Overrides**

[Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals%28system-object%29)

#### Equals(OpcNamespace)

Determines whether the specified `other` is equal to this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public bool Equals(OpcNamespace other)
```

</div>

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

```vbnet
Public Function Equals(other As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `other` | [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 compare to the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if the specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is equal to the current [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/); otherwise the value false.

**Implements**

[Equals(OpcNamespace)](https://learn.microsoft.com/dotnet/api/system.iequatable-1.equals)

### Get

<span class="api-meta">static · 5 overloads</span>

| Overload | Description |
|---|---|
| [Get(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#get-system-int32)<span class="api-meta">static</span> | Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) known under the `namespaceIndex` specified. |
| [Get(int, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#get-system-int32-system-string)<span class="api-meta">static</span> | Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) known under the `namespaceIndex` and `namespaceValue` specified. |
| [Get(int, Uri)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#get-system-int32-system-uri)<span class="api-meta">static</span> | Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) known under the `namespaceIndex` and `namespaceUri` specified. |
| [Get(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#get-system-string)<span class="api-meta">static</span> | Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) using the information provided by the `namespaceUriOrValue` specified. |
| [Get(Uri)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#get-system-uri)<span class="api-meta">static</span> | Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) with the information provided by the `namespaceUri` specified. |

#### Get(int)

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

Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) known under the `namespaceIndex` specified.

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

```csharp
public static OpcNamespace Get(int namespaceIndex)
```

</div>

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

```vbnet
Public Shared Function [Get](namespaceIndex As Integer) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |

**Returns**

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

If `namespaceIndex` is equals zero the [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) namespace; otherwise if there is a known namespace with the index specified the reference to the existing [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). If there does no namespace exist under the index specified by `namespaceIndex` a new namespace with that index is created, added to the indexed namespaces and the reference to the new [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is returned.

#### Get(int, string)

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

Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) known under the `namespaceIndex` and `namespaceValue` specified.

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

```csharp
public static OpcNamespace Get(int namespaceIndex, string namespaceValue)
```

</div>

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

```vbnet
Public Shared Function [Get](
    namespaceIndex As Integer,
    namespaceValue As String) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |
| `namespaceValue` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [Uri](https://learn.microsoft.com/dotnet/api/system.uri)-formatted or [string](https://learn.microsoft.com/dotnet/api/system.string)-based representation of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |

**Returns**

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

If `namespaceIndex` is equals zero and the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) portion of the `namespaceValue` is zero too the [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) namespace; otherwise if there is a known namespace with the index specified by `namespaceIndex` or (if this parameter is equals zero) a known namespace with the index defined by the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) portion of the `namespaceValue` the reference to the existing [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). If there does no namespace exist under the index and value specified by `namespaceIndex` and `namespaceValue` a new namespace with that index and value is created, added to the indexed / unindexed namespaces and the reference to the new [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is returned.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `namespaceValue` is an empty string. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `namespaceValue` is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `namespaceValue` is not a valid namespace. |

#### Get(int, Uri)

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

Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) known under the `namespaceIndex` and `namespaceUri` specified.

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

```csharp
public static OpcNamespace Get(int namespaceIndex, Uri namespaceUri)
```

</div>

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

```vbnet
Public Shared Function [Get](
    namespaceIndex As Integer,
    namespaceUri As Uri) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `namespaceIndex` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |
| `namespaceUri` | [Uri](https://learn.microsoft.com/dotnet/api/system.uri) | The [Uri](https://learn.microsoft.com/dotnet/api/system.uri) of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |

**Returns**

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

If `namespaceIndex` is equals zero and the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) portion of the `namespaceUri` is zero too the [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) namespace; otherwise if there is a known namespace with the index specified by `namespaceIndex` or (if this parameter is equals zero) a known namespace with the index defined by the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) portion of the `namespaceUri` the reference to the existing [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). If there does no namespace exist under the index and uri specified by `namespaceIndex` and `namespaceUri` a new namespace with that index and uri is created, added to the indexed / unindexed namespaces and the reference to the new [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is returned.

**Exceptions**

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

#### Get(string)

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

Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) using the information provided by the `namespaceUriOrValue` specified.

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

```csharp
public static OpcNamespace Get(string namespaceUriOrValue)
```

</div>

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

```vbnet
Public Shared Function [Get](namespaceUriOrValue As String) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `namespaceUriOrValue` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string)-based representation or [Uri](https://learn.microsoft.com/dotnet/api/system.uri)-formatted string of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |

**Returns**

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

If [Host](https://learn.microsoft.com/dotnet/api/system.uri.host) portion of the `namespaceUriOrValue` is equals to [UriHost](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#urihost) and the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) does not refer to an indexed namespace the [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) namespace; otherwise if there is a known namespace with the index specified by the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) portion the reference to the existing [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). If there does no namespace exist under the index or `namespaceUriOrValue` specified a new namespace with that [Uri](https://learn.microsoft.com/dotnet/api/system.uri) is created, added to the indexed / unindexed namespaces and the reference to the new [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is returned.

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The `namespaceUriOrValue` is an empty string. |
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `namespaceUriOrValue` is a null reference (Nothing in Visual Basic). |
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `namespaceUriOrValue` is not a valid namespace. |

#### Get(Uri)

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

Retrieves the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) with the information provided by the `namespaceUri` specified.

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

```csharp
public static OpcNamespace Get(Uri namespaceUri)
```

</div>

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

```vbnet
Public Shared Function [Get](namespaceUri As Uri) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `namespaceUri` | [Uri](https://learn.microsoft.com/dotnet/api/system.uri) | The [Uri](https://learn.microsoft.com/dotnet/api/system.uri) of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to retrieve. |

**Returns**

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

If [Host](https://learn.microsoft.com/dotnet/api/system.uri.host) portion of the `namespaceUri` is equals to [UriHost](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#urihost) and the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) does not refer to an indexed namespace the [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default) namespace; otherwise if there is a known namespace with the index specified by the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) portion the reference to the existing [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). If there does no namespace exist under the index or `namespaceUri` specified a new namespace with that [Uri](https://learn.microsoft.com/dotnet/api/system.uri) is created, added to the indexed / unindexed namespaces and the reference to the new [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is returned.

**Exceptions**

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

### GetHashCode

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

Retrieves a hash code for this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public override int GetHashCode()
```

</div>

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

```vbnet
Public Overrides Function GetHashCode() As Integer
```

</div>

**Returns**

[Int32](https://learn.microsoft.com/dotnet/api/system.int32)

An [int](https://learn.microsoft.com/dotnet/api/system.int32) that contains the hash code for the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

**Overrides**

[GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)

### GetId

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

| Overload | Description |
|---|---|
| [GetId(byte\[\])](#getid-system-byte-array) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the opaque `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |
| [GetId(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#getid-system-int32) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the numeric `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |
| [GetId(uint)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#getid-system-uint32) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the numeric `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |
| [GetId(Guid)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#getid-system-guid) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the general unique identifier (= GUID) `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |
| [GetId(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#getid-system-string) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the [string](https://learn.microsoft.com/dotnet/api/system.string)`value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |
| [GetId(string, OpcNamePath)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#getid-system-string-opc-uafx-opcnamepath) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the [string](https://learn.microsoft.com/dotnet/api/system.string)`value`, this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) and the `path`. |
| [GetId(string, params OpcName\[\])](#getid-system-string-opc-uafx-opcname-array) | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the [string](https://learn.microsoft.com/dotnet/api/system.string)`value`, this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) and the `pathElements`. |
| [GetId(object)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#getid-system-object)<span class="api-meta">since v2.14</span> | Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

#### GetId(byte\[\])

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the opaque `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetId(byte[] value)
```

</div>

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

```vbnet
Public Function GetId(value As Byte()) As OpcNodeId
```

</div>

**Parameters**

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

**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/) using the `value` as the identifier value and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

#### GetId(int)

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the numeric `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetId(int value)
```

</div>

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

```vbnet
Public Function GetId(value As Integer) As OpcNodeId
```

</div>

**Parameters**

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

**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/) using the `value` as the identifier value and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

#### GetId(uint)

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the numeric `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetId(uint value)
```

</div>

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

```vbnet
Public Function GetId(value As UInteger) As OpcNodeId
```

</div>

**Parameters**

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

**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/) using the `value` as the identifier value and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

#### GetId(Guid)

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the general unique identifier (= GUID) `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetId(Guid value)
```

</div>

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

```vbnet
Public Function GetId(value As Guid) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Guid](https://learn.microsoft.com/dotnet/api/system.guid) | The general unique identifier (= GUID) value of the identifier. |

**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/) using the `value` as the identifier value and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

#### GetId(string)

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the [string](https://learn.microsoft.com/dotnet/api/system.string)`value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetId(string value)
```

</div>

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

```vbnet
Public Function GetId(value As String) As OpcNodeId
```

</div>

**Parameters**

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

**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/) using the `value` as the identifier value and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

#### GetId(string, OpcNamePath)

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the [string](https://learn.microsoft.com/dotnet/api/system.string)`value`, this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) and the `path`.

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

```csharp
public OpcNodeId GetId(string value, OpcNamePath path)
```

</div>

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

```vbnet
Public Function GetId(value As String, path As OpcNamePath) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) value of the identifier. |
| `path` | [OpcNamePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamepath/) | The logical (= physically not available in the address space) portion of the identifier. |

**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/) using the `value` as the identifier value, this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace) and the `path` specified for the [Path](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#path).

#### GetId(string, params OpcName\[\])

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the [string](https://learn.microsoft.com/dotnet/api/system.string)`value`, this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) and the `pathElements`.

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

```csharp
public OpcNodeId GetId(string value, params OpcName[] pathElements)
```

</div>

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

```vbnet
Public Function GetId(
    value As String,
    ParamArray pathElements As OpcName()) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The [string](https://learn.microsoft.com/dotnet/api/system.string) value of the identifier. |
| `pathElements` | params [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/)[] | The elements of the [OpcNamePath](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamepath/) to use as the logical (= physically not available in the address space) portion of the identifier. |

**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/) using the `value` as the identifier value, this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace) and the `pathElements` for the [Path](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#path).

#### GetId(object)

<span class="api-meta">since v2.14</span>

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the `value` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetId(object value)
```

</div>

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

```vbnet
Public Function GetId(value As Object) As OpcNodeId
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Object](https://learn.microsoft.com/dotnet/api/system.object) | The value of the identifier. |

**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/) using the `value` as the identifier value and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

**Exceptions**

| Exception | Condition |
|---|---|
| [ArgumentException](https://learn.microsoft.com/dotnet/api/system.argumentexception) | The type of `value` is not supported. |

### GetName

Retrieves a new [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) using the `name` and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcName GetName(string name)
```

</div>

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

```vbnet
Public Function GetName(name As String) As OpcName
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The value of the [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) to create. |

**Returns**

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

A new instance of the [OpcName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/) using the `name` as the [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#value) and this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#namespace).

### GetNextId

<span class="api-meta">since v2.29</span>

Retrieves a new [OpcNodeId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/) using the next available numeric identifier within this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/).

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

```csharp
public OpcNodeId GetNextId()
```

</div>

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

```vbnet
Public Function GetNextId() As OpcNodeId
```

</div>

**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/) using the next available numeric identifier within this [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) as the [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnodeid/members#namespace).

### Parse

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

Converts a namespace string to a [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) instance.

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

```csharp
public static OpcNamespace Parse(string value)
```

</div>

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

```vbnet
Public Shared Function Parse(value As String) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A string that contains a namespace. |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class.

**Exceptions**

| Exception | Condition |
|---|---|
| [FormatException](https://learn.microsoft.com/dotnet/api/system.formatexception) | The `value` is not a valid namespace. |

### Resolve

Resolves missing OPC UA namespace information using the object specified by `resolver`.

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

```csharp
public void Resolve(IOpcNamespaceResolver resolver)
```

</div>

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

```vbnet
Public Sub Resolve(resolver As IOpcNamespaceResolver)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `resolver` | [IOpcNamespaceResolver](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnamespaceresolver/) | An instance implementing the [IOpcNamespaceResolver](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcnamespaceresolver/) interface to use to retrieve additional namespace information so far missed by the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/). |

**Exceptions**

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

**Remarks**

Only missing information is resolved using the `resolver` specified. A once resolved [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) or [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value) is not discarded or re-resolved by subsequent calls of this method (see [IsResolved](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#isresolved)).

### ToString

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

Returns a string representing the namespace.

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

```csharp
public override string ToString()
```

</div>

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

```vbnet
Public Overrides Function ToString() As String
```

</div>

**Returns**

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

The [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#value) and [Index](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#index) (if non-zero) formatted as string.

**Overrides**

[ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

### TryCreate

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

| Overload | Description |
|---|---|
| [TryCreate(Uri, out OpcNamespace)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#trycreate-system-uri-opc-uafx-opcnamespace-ref)<span class="api-meta">static</span> | Determines whether a [Uri](https://learn.microsoft.com/dotnet/api/system.uri) is a valid namespace. |
| [TryCreate(Uri, int, out OpcNamespace)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#trycreate-system-uri-system-int32-opc-uafx-opcnamespace-ref)<span class="api-meta">static · since v2.8</span> | Determines whether a [Uri](https://learn.microsoft.com/dotnet/api/system.uri) is a valid namespace. |

#### TryCreate(Uri, out OpcNamespace)

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

Determines whether a [Uri](https://learn.microsoft.com/dotnet/api/system.uri) is a valid namespace.

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

```csharp
public static bool TryCreate(Uri uri, out OpcNamespace nodeNamespace)
```

</div>

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

```vbnet
Public Shared Function TryCreate(
    uri As Uri,
    nodeNamespace As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `uri` | [Uri](https://learn.microsoft.com/dotnet/api/system.uri) | The [Uri](https://learn.microsoft.com/dotnet/api/system.uri) to validate. |
| `nodeNamespace` | out [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/) version of the `uri`. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true, if the `uri` is a valid namespace; otherwise the value false.

#### TryCreate(Uri, int, out OpcNamespace)

<span class="api-meta">static · since v2.8</span>

Determines whether a [Uri](https://learn.microsoft.com/dotnet/api/system.uri) is a valid namespace.

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

```csharp
public static bool TryCreate(Uri uri, int index, out OpcNamespace nodeNamespace)
```

</div>

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

```vbnet
Public Shared Function TryCreate(
    uri As Uri,
    index As Integer,
    nodeNamespace As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `uri` | [Uri](https://learn.microsoft.com/dotnet/api/system.uri) | The [Uri](https://learn.microsoft.com/dotnet/api/system.uri) to validate. |
| `index` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | The index which applies to the `uri` of the namespace to validate. |
| `nodeNamespace` | out [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/) version of the `uri` with the `index` specified. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true; if the `uri` is a valid namespace; otherwise the value false.

**Remarks**

The `index` is only used if it is greater than zero; otherwise the [Port](https://learn.microsoft.com/dotnet/api/system.uri.port) of the `uri` is used instead.

### TryParse

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

Determines whether a string is a valid namespace.

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

```csharp
public static bool TryParse(string value, out OpcNamespace nodeNamespace)
```

</div>

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

```vbnet
Public Shared Function TryParse(
    value As String,
    nodeNamespace As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The string to validate. |
| `nodeNamespace` | out [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/) version of the string. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true, if `value` is a valid namespace; otherwise the value false.

## Operators

### Equality

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

Returns a value indicating whether two instance of [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) are equal.

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

```csharp
public static bool operator ==(OpcNamespace left, OpcNamespace right)
```

</div>

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

```vbnet
Public Shared Operator =(left As OpcNamespace, right As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The first [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to compare. |
| `right` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are equal; otherwise the value false.

### GreaterThan

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

Determines whether the first specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object is greater than the second specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object.

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

```csharp
public static bool operator >(OpcNamespace left, OpcNamespace right)
```

</div>

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

```vbnet
Public Shared Operator >(left As OpcNamespace, right As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The first [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |
| `right` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than `right`; otherwise, false.

### GreaterThanOrEqual

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

Determines whether the first specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object is greater than or equal to the second specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object.

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

```csharp
public static bool operator >=(OpcNamespace left, OpcNamespace right)
```

</div>

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

```vbnet
Public Shared Operator >=(
    left As OpcNamespace,
    right As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The first [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |
| `right` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is greater than or equal to `right`; otherwise, false.

### Implicit

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

| Overload | Description |
|---|---|
| [implicit operator OpcNamespace(string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#op-implicit-system-string-opc-uafx-opcnamespace)<span class="api-meta">static</span> | Converts a [string](https://learn.microsoft.com/dotnet/api/system.string) to an [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |
| [implicit operator OpcNamespace(int)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#op-implicit-system-int32-opc-uafx-opcnamespace)<span class="api-meta">static</span> | Converts a [int](https://learn.microsoft.com/dotnet/api/system.int32) to an [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |

#### implicit operator OpcNamespace(string)

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

Converts a [string](https://learn.microsoft.com/dotnet/api/system.string) to an [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object.

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

```csharp
public static implicit operator OpcNamespace(string value)
```

</div>

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

```vbnet
Public Shared Widening Operator CType(value As String) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [String](https://learn.microsoft.com/dotnet/api/system.string) | A string that represents the namespace. |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class initialized from the `value`.

#### implicit operator OpcNamespace(int)

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

Converts a [int](https://learn.microsoft.com/dotnet/api/system.int32) to an [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object.

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

```csharp
public static implicit operator OpcNamespace(int value)
```

</div>

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

```vbnet
Public Shared Widening Operator CType(value As Integer) As OpcNamespace
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `value` | [Int32](https://learn.microsoft.com/dotnet/api/system.int32) | A [int](https://learn.microsoft.com/dotnet/api/system.int32) that represents the namespace. |

**Returns**

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

An instance of the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class initialized from the `value`.

### Inequality

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

Returns a value indicating whether two instances of [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) are not equal.

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

```csharp
public static bool operator !=(OpcNamespace left, OpcNamespace right)
```

</div>

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

```vbnet
Public Shared Operator <>(
    left As OpcNamespace,
    right As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The first [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to compare. |
| `right` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) to compare. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if left and right are not equal; otherwise the value false.

### LessThan

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

Determines whether the first specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object is less than the second specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object.

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

```csharp
public static bool operator <(OpcNamespace left, OpcNamespace right)
```

</div>

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

```vbnet
Public Shared Operator <(left As OpcNamespace, right As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The first [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |
| `right` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than `right`; otherwise the value false.

**Exceptions**

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

### LessThanOrEqual

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

Determines whether the first specified [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object is less than or equal to the second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object.

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

```csharp
public static bool operator <=(OpcNamespace left, OpcNamespace right)
```

</div>

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

```vbnet
Public Shared Operator <=(
    left As OpcNamespace,
    right As OpcNamespace) As Boolean
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `left` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The first [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |
| `right` | [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) | The second [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) object. |

**Returns**

[Boolean](https://learn.microsoft.com/dotnet/api/system.boolean)

The value true if `left` is less than or equal to `right`; otherwise the value false.

**Exceptions**

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