# OpcEnumMember Members

> Reference: Defines the metadata required to represent a member of an enumerated type definition.

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

## Constructors

### OpcEnumMember

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

| Overload | Description |
|---|---|
| [OpcEnumMember(string, long)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummember/members#opcenummember-system-string-system-int64) | Initializes a new instance of the [OpcEnumMember](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummember/) class using the unique `name` and `value` of the enumeration member to define. |
| [OpcEnumMember(string, long, string)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummember/members#opcenummember-system-string-system-int64-system-string) | Initializes a new instance of the [OpcEnumMember](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummember/) class using the unique `name`, `value` and `description` of the enumeration member to define. |

#### OpcEnumMember(string, long)

Initializes a new instance of the [OpcEnumMember](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummember/) class using the unique `name` and `value` of the enumeration member to define.

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

```csharp
public OpcEnumMember(string name, long value)
```

</div>

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

```vbnet
Public Sub New(name As String, value As Long)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the enumeration member which unique identifies the member in the enumeration. |
| `value` | [Int64](https://learn.microsoft.com/dotnet/api/system.int64) | The value of the enumeration member. |

#### OpcEnumMember(string, long, string)

Initializes a new instance of the [OpcEnumMember](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummember/) class using the unique `name`, `value` and `description` of the enumeration member to define.

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

```csharp
public OpcEnumMember(string name, long value, string description)
```

</div>

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

```vbnet
Public Sub New(name As String, value As Long, description As String)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `name` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The name of the enumeration member which unique identifies the member in the enumeration. |
| `value` | [Int64](https://learn.microsoft.com/dotnet/api/system.int64) | The value of the enumeration member. |
| `description` | [String](https://learn.microsoft.com/dotnet/api/system.string) | The description of the purpose of the enumeration member. |

## Properties

### Description

Gets description of the enumeration member which defines the purpose of the member.

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

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

</div>

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

```vbnet
Public ReadOnly Property Description As String
```

</div>

**Property value**

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

The description of the purpose of the enmeration member represented.

### Name

Gets the name of the enumeration member which unique identifies the member in the enumeration.

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

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

</div>

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

```vbnet
Public ReadOnly Property Name As String
```

</div>

**Property value**

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

The unique name of the enumeration member.

### Value

Gets the value of the enumeration member.

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

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

</div>

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

```vbnet
Public ReadOnly Property Value As Long
```

</div>

**Property value**

[Int64](https://learn.microsoft.com/dotnet/api/system.int64)

The value of the enumeration member.
