QuickOPC User's Guide and Reference
ToValueResult Method (DAVtqResult)



OpcLabs.EasyOpcClassicCore Assembly > OpcLabs.EasyOpc.DataAccess.OperationModel Namespace > DAVtqResult Class : ToValueResult Method
The OPC-DA VTQ result to be converted.
Converts OPC-DA VTQ result object to a corresponding value result object, OpcLabs.BaseLib.OperationModel.ValueResult.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<ContractAnnotationAttribute("null => null; notnull => notnull")>
Public Shared Function ToValueResult( _
   ByVal vtqResult As DAVtqResult _
) As ValueResult
'Usage
 
Dim vtqResult As DAVtqResult
Dim value As ValueResult
 
value = DAVtqResult.ToValueResult(vtqResult)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public static ValueResult ToValueResult( 
   DAVtqResult vtqResult
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
static ValueResult^ ToValueResult( 
   DAVtqResult^ vtqResult
) 

Parameters

vtqResult
The OPC-DA VTQ result to be converted.

Return Value

The value result object that corresponds to the VTQ result. null if the VTQ result passed in was null.
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