OPCHDA.NET-UA
GetItemAttributes Method
See Also  Send Feedback
OpcHDaNetUaOption.Net4 Assembly > hdaUAwrapper Namespace > HDAServer Class : GetItemAttributes Method

attrID
The attribute identification index number.
attrName
OUT: The name of the attribute.
attrDesc
OUT: A description of the attribute.
attrDataType
OUT: The .NET data type of the attribute.

Glossary Item Box

This synchronous function returns the item attributes supported by the server. The OPC defined attribute types are defined in specification section 5.2. 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 function shall return a count of 0 and NULL pointers.

Syntax

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

Parameters

attrID
The attribute identification index number.
attrName
OUT: The name of the attribute.
attrDesc
OUT: A description of the attribute.
attrDataType
OUT: The .NET data type of the attribute.

Return Value

S_OK or E_FAIL

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.