T
The framework type of value contained in the variable.
EasyUA Reference
GetValue<T>(BaseDataVariableState<T>) Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > BaseVariableState Class > GetValue Method : GetValue<T>(BaseDataVariableState<T>) Method

variable
The variable.

Glossary Item Box

Returns the value after checking if the variable is null.

Syntax

Visual Basic (Usage)Copy Code
Dim variable As BaseDataVariableState(Of T)
Dim value As T
 
value = BaseVariableState.GetValue(Of T)(variable)
C# 
public static T GetValue<T>( 
   BaseDataVariableState<T> variable
)

Parameters

variable
The variable.

Type Parameters

T
The framework type of value contained in the variable.

Return Value

The value contained by the variable or the default value for the datatype if the variable is null.

Requirements

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

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.