OPC Historian .NET Server Toolkit Reference
GetItemAttributes Method (IAppPlugin)

OUT: The number of item attributes returned.
OUT: The attribute identification index number.
OUT: The name of the attribute.
OUT: A description of the attribute.
OUT: The data type of the attribute.
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
'Usage
 
Dim instance As IAppPlugin
Dim count As Integer
Dim attrID As Integer()
Dim attrName As String()
Dim attrDesc As String()
Dim attrType As Type()
Dim value As Integer
 
value = instance.GetItemAttributes(count, attrID, attrName, attrDesc, attrType)
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IAppPlugin Interface
IAppPlugin Members

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback