# OpcEnumValue Class

<span class="api-meta">since v2.53</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>Members</dt>
<dd><a href="./members">OpcEnumValue Members</a></dd>
</dl>

Represent a human-readable representation of an enumeration.

## Syntax

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

```csharp
public class OpcEnumValue
```

</div>

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

```vbnet
Public Class OpcEnumValue
```

</div>

## Inheritance

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

## 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;OpcEnumValue&gt;</li>
<li><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;OpcEnumValue&gt;</li>
</ul>

## Remarks

When this type is used in an array representing human-readable representations of an enumeration, each Value shall be unique in that array.

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#description) | Gets a localized description of the enumeration value. |
| [DisplayName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#displayname) | Gets a human-readable representation of the value of the enumeration. |
| [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#name) | Gets an internal name for the value of the enumeration. |
| [Value](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#value) | Gets the value representation of an enumeration. |

## Methods

| Name | Description |
|---|---|
| [CompareTo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#compareto)<span class="api-meta">virtual · 2 overloads</span> | Compares the current OpcEnumValue with the `other`. |
| [Equals](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#equals)<span class="api-meta">2 overloads</span> | Determines whether the specified `other` is equal to this OpcEnumValue. |
| [GetHashCode](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#gethashcode)<span class="api-meta">override</span> | Retrieves a hash code for this OpcEnumValue. |
| [ToString](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#tostring)<span class="api-meta">override</span> | Converts the value of this instance to its equivalent string representation. |

## Operators

| Name | Description |
|---|---|
| [Equality](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#op-equality)<span class="api-meta">static</span> | Returns a value indicating whether two instance of OpcEnumValue are equal. |
| [GreaterThan](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#op-greaterthan)<span class="api-meta">static</span> | Determines whether the first specified OpcEnumValue object is greater than the second specified OpcEnumValue object. |
| [GreaterThanOrEqual](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#op-greaterthanorequal)<span class="api-meta">static</span> | Determines whether the first specified OpcEnumValue object is greater than or equal to the second specified OpcEnumValue object. |
| [Inequality](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#op-inequality)<span class="api-meta">static</span> | Returns a value indicating whether two instances of OpcEnumValue are not equal. |
| [LessThan](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#op-lessthan)<span class="api-meta">static</span> | Determines whether the first specified OpcEnumValue object is less than the second specified OpcEnumValue object. |
| [LessThanOrEqual](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenumvalue/members#op-lessthanorequal)<span class="api-meta">static</span> | Determines whether the first specified OpcEnumValue object is less than or equal to the second OpcEnumValue object. |

## Applies to

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