uaPLUS Reference
QueryProperties Method
See Also  Send Feedback
NSPlugin Namespace > GenericServer Class : QueryProperties Method

ItemHandle
Application item handle
numProp
Number of properties retruned
IDs
Array with the the property ID number
Names
Array with the property names. This symbolic name is used only in the XML-DA server. It is ignored by the DANSrv OPC DA server.
Descriptions
Array with the property description
Values
Array with the current property values

Glossary Item Box

Query the properties defined for the specified item

Syntax

Visual Basic (Declaration) 
Public Function QueryProperties( _
   ByVal ItemHandle As Integer, _
   ByRef numProp As Integer, _
   ByRef IDs As Integer(), _
   ByRef Names As String(), _
   ByRef Descriptions As String(), _
   ByRef Values As Object() _
) As Integer
C# 
public int QueryProperties( 
   int ItemHandle,
   out int numProp,
   out int[] IDs,
   out string[] Names,
   out string[] Descriptions,
   out object[] Values
)

Parameters

ItemHandle
Application item handle
numProp
Number of properties retruned
IDs
Array with the the property ID number
Names
Array with the property names. This symbolic name is used only in the XML-DA server. It is ignored by the DANSrv OPC DA server.
Descriptions
Array with the property description
Values
Array with the current property values

Return Value

HRESULT success/error code. S_FALSE if the item has no custom properties.

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.