Connectivity Software User's Guide and Reference
HandleAndReturn Method (SparkplugMetricWriteEventArgs)



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug.OperationModel Namespace > SparkplugMetricWriteEventArgs Class : HandleAndReturn Method
Indicates whether the event handling has succeeded.
Indicate that the event has been completely handled, and return the success indication as the event handling result.
Syntax
'Declaration
 
Public Sub HandleAndReturn( _
   ByVal result As Boolean _
) 
'Usage
 
Dim instance As SparkplugMetricWriteEventArgs
Dim result As Boolean
 
instance.HandleAndReturn(result)
public void HandleAndReturn( 
   bool result
)
public:
void HandleAndReturn( 
   bool result
) 

Parameters

result
Indicates whether the event handling has succeeded.
Remarks

Marks the event as handled and indicates whether the event handling has been successful.

Calling this method indicates that the event has been fully processed and no further action is required. The specified result will be used as the outcome of the event handling.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

 

Sparkplug is a trademark of Eclipse Foundation, Inc. "MQTT" is a trademark of the OASIS Open standards consortium. Other related terms are trademarks of their respective owners. Any use of these terms on this site is for descriptive purposes only and does not imply any sponsorship, endorsement or affiliation.

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