OPC Studio User's Guide and Reference
EnumStrings Property (UAMultiStateDiscreteNode<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataAccess Namespace > UAMultiStateDiscreteNode<TValue,TAttribute> Class : EnumStrings Property
A string lookup table corresponding to sequential numeric values (0, 1, 2, etc.).
Syntax
'Declaration
 
<ElementsNotNullAttribute()>
<MappingTagAttribute("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")>
<NotNullAttribute()>
<UANodeAttribute(".[EnumString]")>
<UADataAttribute()>
Public Property EnumStrings As String()
'Usage
 
Dim instance As UAMultiStateDiscreteNode(Of TValue,TAttribute)
Dim value() As String
 
instance.EnumStrings = value
 
value = instance.EnumStrings
[ElementsNotNull()]
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")]
[NotNull()]
[UANode(".[EnumString]")]
[UAData()]
public string[] EnumStrings {get; set;}
[ElementsNotNull()]
[MappingTag("OpcLabs.EasyOpc.UA.InformationModel.MandatoryProperty")]
[NotNull()]
[UANode(".[EnumString]")]
[UAData()]
public:
property array<String^>^ EnumStrings {
   array<String^>^ get();
   void set (    array<String^>^ value);
}
Remarks

Example:

Here the string “OPEN” corresponds to 0, “Close” to 1 and “IN TRANSIT” to 2.

Clients should be prepared to handle item values outside the range of the list and robust servers should be prepared to handle writes of illegal values.

If the item contains an array this lookup table shall apply to all elements in the array.

NOTE: The EnumStrings property is also used for Enumeration DataTypes.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also