OPC Studio User's Guide and Reference
ValueResult Constructor(Object,Object)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > ValueResult Class > ValueResult Constructor : ValueResult Constructor(Object,Object)
An arbitrary object associated with the operation. It is the state object specified when the operation was invoked.

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

A value that is a successful result of the operation.

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

Initializes a new instance of the class, with given state object and value.
Syntax
'Declaration
 
Public Function New( _
   ByVal state As Object, _
   ByVal value As Object _
)
'Usage
 
Dim state As Object
Dim value As Object
 
Dim instance As New ValueResult(state, value)
public ValueResult( 
   object state,
   object value
)
public:
ValueResult( 
   Object^ state,
   Object^ value
)

Parameters

state
An arbitrary object associated with the operation. It is the state object specified when the operation was invoked.

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

value
A value that is a successful result of the operation.

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

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