Visual Basic (Declaration) | |
---|---|
Public Function GetAttributeValue(Of T)( _ ByVal attributeId As UInteger, _ ByVal value As DataValue, _ ByVal isValue As Boolean _ ) As T |
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.
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.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family