QuickOPC User's Guide and Reference
GetControlValue Method (IValueControl)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel Namespace > IValueControl Interface : GetControlValue Method
Gets the current value of the control.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Function GetControlValue() As Object
'Usage
 
Dim instance As IValueControl
Dim value As Object
 
value = instance.GetControlValue()
[CanBeNull()]
object GetControlValue()
[CanBeNull()]
Object^ GetControlValue(); 

Return Value

Returns the current value of the control.
Remarks

The control's value can be null even in controls that are not nullable (their IsNullable is false).

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