QuickOPC User's Guide and Reference
AsEnumTypeInfo Method (UADataTypeInfoExtension)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.DataTypeSchema.Extensions Namespace > UADataTypeInfoExtension Class : AsEnumTypeInfo Method
The current OPC UA data type info expressed as enum type info.
Syntax
'Declaration
 
<ExtensionAttribute()>
<CanBeNullAttribute()>
Public Shared Function AsEnumTypeInfo( _
   ByVal dataTypeInfo As UADataTypeInfo _
) As UAEnumTypeInfo
'Usage
 
Dim dataTypeInfo As UADataTypeInfo
Dim value As UAEnumTypeInfo
 
value = UADataTypeInfoExtension.AsEnumTypeInfo(dataTypeInfo)
[Extension()]
[CanBeNull()]
public static UAEnumTypeInfo AsEnumTypeInfo( 
   UADataTypeInfo dataTypeInfo
)
[Extension()]
[CanBeNull()]
public:
static UAEnumTypeInfo^ AsEnumTypeInfo( 
   UADataTypeInfo^ dataTypeInfo
) 

Parameters

dataTypeInfo
Remarks

Returns null if the current OPC UA data type info is not a enum type info.

This method has been introduced primarily for languages like PHP that do not allow down-casting.

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