QuickOPC User's Guide and Reference
IsValidDataType Method (DAUtilities)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess Namespace > DAUtilities Class : IsValidDataType Method
The data type to be tested.
Determines whether a given OpcLabs.BaseLib.ComInterop.VarType is a valid data type in OPC Data Access.
Syntax
'Declaration
 
<ContractAnnotationAttribute("null => false")>
<PureAttribute()>
Public Shared Function IsValidDataType( _
   ByVal dataType As VarType _
) As Boolean
'Usage
 
Dim dataType As VarType
Dim value As Boolean
 
value = DAUtilities.IsValidDataType(dataType)
[ContractAnnotation("null => false")]
[Pure()]
public static bool IsValidDataType( 
   VarType dataType
)
[ContractAnnotation("null => false")]
[Pure()]
public:
static bool IsValidDataType( 
   VarType^ dataType
) 

Parameters

dataType
The data type to be tested.

Return Value

true if dataType is a valid data type in OPC Data Access; false otherwise.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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