'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ReadFunction( _ ByVal dataVariable As UADataVariable, _ ByVal valueTypeCode As TypeCode, _ ByVal readFunction As Func(Of UAAttributeData) _ ) As UADataVariable
'Usage
Dim dataVariable As UADataVariable Dim valueTypeCode As TypeCode Dim readFunction As Func(Of UAAttributeData) Dim value As UADataVariable value = UADataVariableExtension.ReadFunction(dataVariable, valueTypeCode, readFunction)
[Extension()] [NotNull()] public static UADataVariable ReadFunction( UADataVariable dataVariable, TypeCode valueTypeCode, Func<UAAttributeData> readFunction )
[Extension()] [NotNull()] public: static UADataVariable^ ReadFunction( UADataVariable^ dataVariable, TypeCode valueTypeCode, Func<UAAttributeData^>^ readFunction )
Parameters
- dataVariable
- The data variable that will be modified and returned.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - valueTypeCode
- The type of the data variable, expressed as .NET type code (System.TypeCode).
- readFunction
- The read function, i.e. the function that performs the read operation and returns the attribute data that will be returned to the caller of the OPC UA Read.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).
Return Value
This method never returns null
(Nothing
in Visual Basic).