OPC Studio User's Guide and Reference
FindByInt32Value Method (EnumerationDataType)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > EnumerationDataType Class : FindByInt32Value Method
The enumeration value to be found.
Finds an enumeration member by its value.
Syntax
'Declaration
 
Public Function FindByInt32Value( _
   ByVal value As Integer _
) As EnumerationMember
'Usage
 
Dim instance As EnumerationDataType
Dim value As Integer
Dim value As EnumerationMember
 
value = instance.FindByInt32Value(value)
public EnumerationMember FindByInt32Value( 
   int value
)
public:
EnumerationMember^ FindByInt32Value( 
   int value
) 

Parameters

value
The enumeration value to be found.

Return Value

Returns an EnumerationMember which has the value given by the value parameter. When there is no such enumeration member, the function returns a null reference. When there is more than one match, the first matching enumeration member found is returned.
Remarks

For finding an enumeration value that corresponds to given name, use the fact that EnumerationMembers is a collection keyed by the enumeration member names.

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