# OpcName Class

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

Represents the name of any kind of OPC UA entity through qualifying its nominal information with a reference to the namespace within the name is used.

## Syntax

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

```csharp
public class OpcName
```

</div>

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

```vbnet
<OpcDataType(20)>
Public Class OpcName
```

</div>

## Inheritance

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

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.icomparable">IComparable</a></li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;OpcName&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;OpcName&gt;</li>
</ul>

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [IsNull](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#isnull) | Gets a value indicating whether the name is a null name. |
| [Namespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#namespace) | Gets the [OpcNamespace](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcnamespace/) used by the OpcName to describe the namespace to that the name belongs. |
| [NamespaceIndex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#namespaceindex) | Gets the index of the namespace that this name belongs. |
| [NamespaceUri](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#namespaceuri) | Gets the uniform resource identifier (URI) of the namespace referred by the [NamespaceIndex](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#namespaceindex). |
| [Null](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#null)<span class="api-meta">static</span> | Gets the default null name. |
| [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#value) | Gets the name without any namespace information. |

## Methods

| Name | Description |
|---|---|
| [CompareTo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#compareto)<span class="api-meta">2 overloads</span> | Compares the current OpcName with the `other`. |
| [Equals](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#equals)<span class="api-meta">2 overloads</span> | Determines whether the specified `other` is equal to this OpcName. |
| [GetHashCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#gethashcode)<span class="api-meta">override</span> | Retrieves a hash code for this OpcName. |
| [IsNullOrEmpty](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#isnullorempty)<span class="api-meta">static · since v2.14</span> | Indicates whether the specified OpcName is null or its [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#value) is null or an empty string (""). |
| [Parse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#parse)<span class="api-meta">static</span> | Converts a name string to a OpcName instance. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#tostring)<span class="api-meta">override</span> | Returns a string representing the name. |
| [TryParse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#tryparse)<span class="api-meta">static</span> | Determines whether a string is a valid name. |

## Operators

| Name | Description |
|---|---|
| [Equality](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-equality)<span class="api-meta">static</span> | Returns a value indicating whether two instance of OpcName are equal. |
| [Explicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-explicit)<span class="api-meta">static</span> | Converts a OpcName to an <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.QualifiedName">QualifiedName</abbr> object. |
| [GreaterThan](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-greaterthan)<span class="api-meta">static</span> | Determines whether the first specified OpcName object is greater than the second specified OpcName object. |
| [GreaterThanOrEqual](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-greaterthanorequal)<span class="api-meta">static</span> | Determines whether the first specified OpcName object is greater than or equal to the second specified OpcName object. |
| [Implicit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-implicit)<span class="api-meta">static · 2 overloads</span> | Converts a [string](https://learn.microsoft.com/dotnet/api/system.string) to an OpcName object. |
| [Inequality](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-inequality)<span class="api-meta">static</span> | Returns a value indicating whether two instances of OpcName are not equal. |
| [LessThan](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-lessthan)<span class="api-meta">static</span> | Determines whether the first specified OpcName object is less than the second specified OpcName object. |
| [LessThanOrEqual](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcname/members#op-lessthanorequal)<span class="api-meta">static</span> | Determines whether the first specified OpcName object is less than or equal to the second OpcName object. |

## Applies to

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