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



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.AlarmsAndEvents Namespace > AEUtilities Class : IsValidDataType Method
The data type to be tested.
Determines whether a given OpcLabs.BaseLib.ComInterop.VarType is a valid data type in OPC Alarms&Events.
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 = AEUtilities.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 Alarms&Events; false otherwise.
Remarks

This method 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 2012, Windows Server 2016; .NET Core, .NET 5, .NET 6: Linux, macOS, Microsoft Windows

See Also

Reference

AEUtilities Class
AEUtilities Members