OPCDA.NET Reference Manual
LookupItemIDs Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcServer Class : LookupItemIDs Method

itemID
IN: The ItemID for which the caller wants to lookup the list of properties
propertyIDs
IN: array with DWORDIDs for the requested properties. These IDs were returned by QueryAvailableProperties
propertyItems
OUT: array of ItemPropertyItemID classes containing the ItemIds and error information

Glossary Item Box

Return a list of ITEMIDs (if available) for each of the passed ID codes. These indicate the ITEMID which could be added to an OPCGroup and used for more efficient access to the data corresponding to the Item Properties. ( IOPCItemProperties::LookupItemIDs ) NOTE: The paramters of this method differ from the OPC standard to make it more convenient to use.

Syntax

Visual Basic (Declaration) 
Public Function LookupItemIDs( _
   ByVal itemID As String, _
   ByVal propertyIDs() As Integer, _
   ByRef propertyItems As ItemPropertyItemID() _
) As Integer
C# 
public int LookupItemIDs( 
   string itemID,
   int[] propertyIDs,
   out ItemPropertyItemID[] propertyItems
)

Parameters

itemID
IN: The ItemID for which the caller wants to lookup the list of properties
propertyIDs
IN: array with DWORDIDs for the requested properties. These IDs were returned by QueryAvailableProperties
propertyItems
OUT: array of ItemPropertyItemID classes containing the ItemIds and error information

Return Value

HRESULT error/success code

Requirements

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

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.