OPC Studio User's Guide and Reference
SetTargetValue Method



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

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

The mapped value to be stored into the linking target.

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

Stores a mapped value into the target of this mapping.
Syntax
'Declaration
 
Public Sub SetTargetValue( _
   ByVal dataType As Type, _
   ByVal value As Object _
) 
'Usage
 
Dim instance As AbstractMapping
Dim dataType As Type
Dim value As Object
 
instance.SetTargetValue(dataType, value)
public void SetTargetValue( 
   Type dataType,
   object value
)
public:
void SetTargetValue( 
   Type^ dataType,
   Object^ value
) 

Parameters

dataType
The data type of the value.

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

value
The mapped value to be stored into the linking target.

The value of this parameter can be 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