uaPLUS Reference
GetItemAttributes Method
See Also  Send Feedback
I_HDAPlugin Namespace > IAppPlugin Interface : GetItemAttributes Method

count
OUT: The number of item attributes returned.
attrID
OUT: The attribute identification index number.
attrName
OUT: The name of the attribute.
attrDesc
OUT: A description of the attribute.
attrType
OUT: The data type of the attribute.

Glossary Item Box

This method returns the item attributes supported by the server. The OPC defined attribute types are defined in the Definitions.ItemAttr array. Vendor specific attributes also are supported. The vendor supplied attributes are made available to allow the client to access and display vendor specific information. Attribute data types are intended to allow query filtering when browsing item ids. If no attributes are supported by the server, the method shall return a count of 0 and NULL pointers.

Syntax

Visual Basic (Declaration) 
Function GetItemAttributes( _
   ByRef count As Integer, _
   ByRef attrID As Integer(), _
   ByRef attrName As String(), _
   ByRef attrDesc As String(), _
   ByRef attrType As Type() _
) As Integer
C# 
int GetItemAttributes( 
   out int count,
   out int[] attrID,
   out string[] attrName,
   out string[] attrDesc,
   out Type[] attrType
)

Parameters

count
OUT: The number of item attributes returned.
attrID
OUT: The attribute identification index number.
attrName
OUT: The name of the attribute.
attrDesc
OUT: A description of the attribute.
attrType
OUT: The data type of the attribute.

Return Value

HRESULTS success/error code.

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.