QuickOPC User's Guide and Reference
Combine Method (ValueResult)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > ValueResult Class : Combine Method
Combines two value results using a function that combines their values.The first value result. The second value result. The function that combines the values of the first and second value result into a value of the resulting value result. If the first value result failed, returns failed value result made from the first value result. Otherwise, if the second value result failed, returns failed value result made from the second value result. Otherwise (i.e. when both the first and second value results succeeded), returns a success value result, containing a value returned by the combineValuesFunction for the values of the first and second value results.

The various overloads of this method allow to combine generic and non-generic value results.

Overload List
OverloadDescription
Combines two value results using a function that combines their values.  
Combines two value results using a function that combines their values.  
Combines two value results using a function that combines their values.  
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