# OpcEnumMemberAttribute Members

> Reference: Defines custom metadata which is used when a member of an enumeration is to be used as a \"EnumString\" or \"EnumValue\" of a custom data type node representing an enumerated type.

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

Inherits members from [Attribute](https://learn.microsoft.com/dotnet/api/system.attribute).

## Constructors

### OpcEnumMemberAttribute

Initializes a new instance of the [OpcEnumMemberAttribute](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummemberattribute/) class using the unique `name` of the enumeration member to that the attribute belongs.

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

```csharp
public OpcEnumMemberAttribute(string name)
```

</div>

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

```vbnet
Public Sub New(name 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. |

## Properties

### Description

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

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

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

</div>

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

```vbnet
Public 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 to the attribute belong.

**Remarks**

This property is only used for "EnumValue" definitions.

### 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.

**Remarks**

This property is used for "EnumString" and "EnumValue" definitions.
