EasyUA Reference
DecodeExtensionObject Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > BaseVariableState Class : DecodeExtensionObject Method

context
The context (uses ServiceMessageContext.GlobalContext if null).
targetType
The type that the ExtensionObject must be converted to.
extension
The ExtensionObject to convert.
throwOnError
Whether to throw an exception on error.

Glossary Item Box

Decodes the contents of an extension object.

Syntax

Visual Basic (Usage)Copy Code
Dim context As ISystemContext
Dim targetType As Type
Dim extension As ExtensionObject
Dim throwOnError As Boolean
Dim value As Object
 
value = BaseVariableState.DecodeExtensionObject(context, targetType, extension, throwOnError)
C# 
public static object DecodeExtensionObject( 
   ISystemContext context,
   Type targetType,
   ExtensionObject extension,
   bool throwOnError
)

Parameters

context
The context (uses ServiceMessageContext.GlobalContext if null).
targetType
The type that the ExtensionObject must be converted to.
extension
The ExtensionObject to convert.
throwOnError
Whether to throw an exception on error.

Return Value

The decoded instance. Null on error.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.