Skip to content

Reference

OpcEnumAttribute Members

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

Reference

OpcEnumAttribute Members ​

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

Inherits members from Attribute.

Constructors ​

OpcEnumAttribute ​

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

csharp
public OpcEnumAttribute(OpcEnumType type)
vbnet
Public Sub New(type As OpcEnumType)

Parameters

NameTypeDescription
typeOpcEnumTypeOne of the members defined by the OpcEnumType enumeration.

Properties ​

AutoDescribe ​

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

csharp
public bool AutoDescribe { get; set; }
vbnet
Public Property AutoDescribe As Boolean

Property value

Boolean

The value true if the description (if unspecified) is to be automatically generated; otherwise the value false. The default value is true if Type is equals to Default or Values.

Remarks

This option only applies to enumerations which are laid out using enumeration values (see Values).

GroupMembers ​

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

csharp
public bool GroupMembers { get; set; }
vbnet
Public Property GroupMembers As Boolean

Property value

Boolean

The value true if the members with the same value are to be grouped into one member; otherwise the value false. The default value is true if Type is equals to Default or Strings.

Remarks

This option only applies to enumerations which are laid out using enumeration strings (see Strings).

Members ​

Gets or sets the criterions to use to select the appropriate members of an enumeration type to respect to definde the enumeration members.

csharp
public OpcEnumMemberOrigins Members { get; set; }
vbnet
Public Property Members As OpcEnumMemberOrigins

Property value

OpcEnumMemberOrigins

A combination of the members defined by the OpcEnumMemberOrigins enumeration.

Type ​

Gets the way used to define the enumeration using its members.

csharp
public OpcEnumType Type { get; }
vbnet
Public ReadOnly Property Type As OpcEnumType

Property value

OpcEnumType

One of the members defined by the OpcEnumType enumeration.