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.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function GetItemAttributes( _ ByRef attrID As Integer(), _ ByRef attrName As String(), _ ByRef attrDesc As String(), _ ByRef attrDataType As VarEnum() _ ) As Integer |
C# | |
---|---|
public int GetItemAttributes( out int[] attrID, out string[] attrName, out string[] attrDesc, out VarEnum[] 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 variant data type of the attribute.
Return Value
S_OK or E_FAILTarget Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x