DANSrv Reference
QueryProperties Method
See Also  Send Feedback
NSPluginNet4 Assembly > 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 (Usage)Copy Code
Dim instance As GenericServer
Dim ItemHandle As Integer
Dim numProp As Integer
Dim IDs As Integer()
Dim Names As String()
Dim Descriptions As String()
Dim Values As Object()
Dim value As Integer
 
value = instance.QueryProperties(ItemHandle, numProp, IDs, Names, Descriptions, Values)
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 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

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