T
The expected type for the attribute value.
uaPLUS Reference
GetAttributeValue<T>(UInt32,DataValue,Boolean) Method
See Also  Send Feedback
Advosol.uaPLUS.HDA Namespace > HdaReadRequest Class : GetAttributeValue<T>(UInt32,DataValue,Boolean) Method

attributeId
The attribute id.
value
The value to update.
isValue
if set to true if the attribute is required for the value attribute of a node.

Glossary Item Box

Gets the attribute value.

Syntax

Visual Basic (Declaration) 
Public Function GetAttributeValue(Of T)( _
   ByVal attributeId As UInteger, _
   ByVal value As DataValue, _
   ByVal isValue As Boolean _
) As T
C# 
public T GetAttributeValue<T>( 
   uint attributeId,
   DataValue value,
   bool isValue
)

Parameters

attributeId
The attribute id.
value
The value to update.
isValue
if set to true if the attribute is required for the value attribute of a node.

Type Parameters

T
The expected type for the attribute value.

Return Value

The value cast to the type T.

Remarks

This method sets the StatusCode in the DataValue if an error occurs and returns default(T). The DataValue.Value attribute is set to the value cast to type T.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.