Skip to content

Reference

OpcEnumAttribute Class

Defines a custom configuration to use to define an enumeration and its members.

Reference

OpcEnumAttribute Class ​

since v2.20

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcEnumAttribute Members
Also in
Opc.UaFx.Client

Defines a custom configuration to use to define an enumeration and its members.

Syntax ​

csharp
[AttributeUsage(AttributeTargets.Enum, AllowMultiple = false, Inherited = false)]
public class OpcEnumAttribute : Attribute
vbnet
<AttributeUsage(AttributeTargets.Enum, AllowMultiple:=False, Inherited:=False)>
Public Class OpcEnumAttribute
    Inherits Attribute

Inheritance ​

Object → Attribute → OpcEnumAttribute

Constructors ​

NameDescription
OpcEnumAttributeInitializes a new instance of the OpcEnumAttribute class using the type of enumeration to define.

Properties ​

NameDescription
AutoDescribeGets or sets a value indicating whether the description of enumeration values is to be automatically generated using the name of the members which can be combined to represent the value of the member.
GroupMembersGets or sets a value indicating whether the members are to be grouped by their value to unambiguously use one numeric value used by different members.
MembersGets or sets the criterions to use to select the appropriate members of an enumeration type to respect to definde the enumeration members.
TypeGets the way used to define the enumeration using its members.

Inherits members from Attribute.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.20–v2.59