T
EasyUA Reference
ExtractValueFromVariant<T>(Object,Boolean) Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > BaseVariableState Class > ExtractValueFromVariant Method : ExtractValueFromVariant<T>(Object,Boolean) Method

value
throwOnError

Glossary Item Box

Converts a values contained in a variant to the value defined for the variable.

Syntax

Visual Basic (Usage)Copy Code
Dim value As Object
Dim throwOnError As Boolean
Dim value As Object
 
value = BaseVariableState.ExtractValueFromVariant(Of T)(value, throwOnError)
C# 
[ObsoleteAttribute("Should use the version that takes a ISystemContext (pass null if ISystemContext is not available).")]
public static object ExtractValueFromVariant<T>( 
   object value,
   bool throwOnError
)

Parameters

value
throwOnError

Type Parameters

T

Requirements

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

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.