OPC Studio User's Guide and Reference
GetValue Method (AbstractLinkingTarget)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Linking Namespace > AbstractLinkingTarget Class : GetValue Method
The data type of the value.

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

Gets a value from this linking target.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public MustOverride Function GetValue( _
   ByVal dataType As Type _
) As Object
'Usage
 
Dim instance As AbstractLinkingTarget
Dim dataType As Type
Dim value As Object
 
value = instance.GetValue(dataType)
[CanBeNull()]
public abstract object GetValue( 
   Type dataType
)
[CanBeNull()]
public:
abstract Object^ GetValue( 
   Type^ dataType
) 

Parameters

dataType
The data type of the value.

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

Return Value

A value obtained from the linking target.

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

Exceptions
ExceptionDescription
Thrown when there is a failure accessing the linking target.
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