OPC Studio User's Guide and Reference
IsValidValue Method (EnumerationMember)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.DataTypeModel Namespace > EnumerationMember Class : IsValidValue Method
The value to be tested.
Determines whether a given integer is valid value for an enumeration member.
Syntax
'Declaration
 
Public Shared Function IsValidValue( _
   ByVal value As Long _
) As Boolean
'Usage
 
Dim value As Long
Dim value As Boolean
 
value = EnumerationMember.IsValidValue(value)
public static bool IsValidValue( 
   long value
)
public:
static bool IsValidValue( 
   int64 value
) 

Parameters

value
The value to be tested.

Return Value

True if the value is valid, false otherwise.
Remarks
A valid value must fit into an unsigned 32-bit integer.
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