# OpcNamespaceScope Enum

> Reference: Defines the scope within a OpcNamespace has been declared its metadata applies to.

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

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

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

## Syntax

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

```csharp
public enum OpcNamespaceScope
```

</div>

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

```vbnet
Public Enum OpcNamespaceScope
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [ValueType](https://learn.microsoft.com/dotnet/api/system.valuetype) → [Enum](https://learn.microsoft.com/dotnet/api/system.enum) → **OpcNamespaceScope**

## Fields

| Name | Value | Description |
|---|---|---|
| <a id="application"></a>`Application` | `1` | The [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is valid to a specific [IOpcApplicationInstance](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplicationinstance/) and it is therefore listed in its [Namespaces](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplicationinstance/members#namespaces). |
| <a id="independent"></a>`Independent` | `2` | The [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) has been created using one of the static (Shared in Visual Basic) 'Create', 'TryCreate', 'Parse' or 'TryParse' methods provided by the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class and is therefore independent from any shared namespaces (see [Shared](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespacescope/#shared)) and as well from any application specific defined namespaces (see [Application](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespacescope/#application)). |
| <a id="shared"></a>`Shared` | `0` | The [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is valid to the current [AppDomain](https://learn.microsoft.com/dotnet/api/system.appdomain) and its shared using a static (Shared in Visual Basic) cache of namespaces. A shared namespace is typically defined using one of the static (Shared in Visual Basic) 'Get' methods provided by the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) class. A continuously shared [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) is the default namespace (see [Default](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/members#default)). |

## Applies to

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