# OpcEnumMemberAttribute Class

> 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>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">OpcEnumMemberAttribute Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

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.

## Syntax

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

```csharp
public class OpcEnumMemberAttribute : Attribute
```

</div>

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

```vbnet
<AttributeUsage(AttributeTargets.Field, AllowMultiple:=False, Inherited:=False)>
Public Class OpcEnumMemberAttribute
    Inherits Attribute
```

</div>

## Inheritance

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

## Constructors

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

## Properties

| Name | Description |
|---|---|
| [Description](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummemberattribute/members#description) | Gets or sets the description of the enumeration member which defines the purpose of the member. |
| [Name](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcenummemberattribute/members#name) | Gets the name of the enumeration member which unique identifies the member in the enumeration. |

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

## Applies to

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