OPC Studio User's Guide and Reference
ToValueResult Method (UAAttributeDataResult)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.OperationModel Namespace > UAAttributeDataResult Class : ToValueResult Method
The OPC-UA attribute data result to be converted.
Converts OPC-UA attribute data 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 attributeDataResult As UAAttributeDataResult _
) As ValueResult
'Usage
 
Dim attributeDataResult As UAAttributeDataResult
Dim value As ValueResult
 
value = UAAttributeDataResult.ToValueResult(attributeDataResult)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public static ValueResult ToValueResult( 
   UAAttributeDataResult attributeDataResult
)
[CanBeNull()]
[ContractAnnotation("null => null; notnull => notnull")]
public:
static ValueResult^ ToValueResult( 
   UAAttributeDataResult^ attributeDataResult
) 

Parameters

attributeDataResult
The OPC-UA attribute data result to be converted.

Return Value

The value result object that corresponds to the attribute data result. null if the attribute data 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