XDASrv Reference Manual
GetPropertyValue Method
See Also  Send Feedback
NSPlugin Namespace > GenericServer Class : GetPropertyValue Method




ItemHandle
Item application handle
pID
ID of the property
Value
Property value
Returns the values of the requested custom properties of the requested item. This method is not called for the OPC standard properties 1..6. These are handled in the generic server.

Syntax

Visual Basic (Declaration) 
Public Function GetPropertyValue( _
   ByVal ItemHandle As Integer, _
   ByVal pID As Integer, _
   ByRef Value As Object _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As GenericServer
Dim ItemHandle As Integer
Dim pID As Integer
Dim Value As Object
Dim value As Integer
 
value = instance.GetPropertyValue(ItemHandle, pID, Value)
C# 
public int GetPropertyValue( 
   int ItemHandle,
   int pID,
   out object Value
)
Managed Extensions for C++ 
public: int GetPropertyValue( 
   int ItemHandle,
   int pID,
   [PARAMFLAG::Out] Object* Value
) 
C++/CLI 
public:
int GetPropertyValue( 
   int ItemHandle,
   int pID,
   [Out] Object^ Value
) 

Parameters

ItemHandle
Item application handle
pID
ID of the property
Value
Property value

Return Value

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

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

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