QuickOPC User's Guide and Reference
GetElementType Method (_VarType)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComInterop.ComTypes Namespace > _VarType Interface : GetElementType Method
Returns the OpcLabs.BaseLib.ComInterop.VarType of the elements encompassed by the current array.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Function GetElementType() As VarType
'Usage
 
Dim instance As _VarType
Dim value As VarType
 
value = instance.GetElementType()
[CanBeNull()]
VarType GetElementType()
[CanBeNull()]
VarType^ GetElementType(); 

Return Value

The OpcLabs.BaseLib.ComInterop.VarType of the elements encompassed by the current array, or null if the current OpcLabs.BaseLib.ComInterop.VarType is not an array.
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