OPC Studio User's Guide and Reference
HandleAndReturn(UAAttributeData) Method



OpcLabs.ServerOpcUA Assembly > OpcLabs.EasyOpc.UA.OperationModel Namespace > UADataVariableReadEventArgs Class > HandleAndReturn Method : HandleAndReturn(UAAttributeData) Method
The value/timestamps/status code that is the result of the OPC read.

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

Indicate that the event has been completely handled, and return the specified OPC UA attribute data as the event handling result.
Syntax
'Declaration
 
Public Overloads Sub HandleAndReturn( _
   ByVal attributeData As UAAttributeData _
) 
'Usage
 
Dim instance As UADataVariableReadEventArgs
Dim attributeData As UAAttributeData
 
instance.HandleAndReturn(attributeData)
public void HandleAndReturn( 
   UAAttributeData attributeData
)
public:
void HandleAndReturn( 
   UAAttributeData^ attributeData
) 

Parameters

attributeData
The value/timestamps/status code that is the result of the OPC read.

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

Remarks

Marks the event as handled and sets the specified OPC UA attribute data as the result of the event handling.

Calling this method indicates that the event has been fully processed and no further action is required. The specified attributeData will be used as the outcome of the event handling, containing the value, timestamps, and status code that result from the read operation.

If you want to use the current time as the source timestamp, and only specify the value and/or the status code, you can use other convenience overloads of this method.

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