OPC Studio User's Guide and Reference
GetTargetValue Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveMapping Namespace > AbstractMapping Class : GetTargetValue Method
The data type of the value.

The value of this parameter cannot be null (Nothing in Visual Basic).

Retrieves the mapped value from a target of this mapping.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Function GetTargetValue( _
   ByVal dataType As Type _
) As Object
'Usage
 
Dim instance As AbstractMapping
Dim dataType As Type
Dim value As Object
 
value = instance.GetTargetValue(dataType)
[CanBeNull()]
public object GetTargetValue( 
   Type dataType
)
[CanBeNull()]
public:
Object^ GetTargetValue( 
   Type^ dataType
) 

Parameters

dataType
The data type of the value.

The value of this parameter cannot be null (Nothing in Visual Basic).

Return Value

The mapped value retrieved from the linking target.

This method can return null (Nothing in Visual Basic).

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