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




instanceHandle
Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
itemName
Fully qualified item ID.
propertyID
Identification number of the property to be assigned an item.
Added in DANSrv V6.0
This method is called by the generic server only when LookupMode is defined as 'PluginHandled'. If the request is invalid the method returns null. Otherwise, it creates a unique name for the property item creates the property item by calling the generic server method AddItem(). The plug-in must update the cache value of this item by calling the SetItemValue() method whenever the property value changes.

Syntax

Visual Basic (Declaration) 
Public Function LookupItemID( _
   ByVal instanceHandle As Integer, _
   ByVal itemName As String, _
   ByVal propertyID As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As GenericServer
Dim instanceHandle As Integer
Dim itemName As String
Dim propertyID As Integer
Dim value As String
 
value = instance.LookupItemID(instanceHandle, itemName, propertyID)
C# 
public string LookupItemID( 
   int instanceHandle,
   string itemName,
   int propertyID
)
Managed Extensions for C++ 
public: string* LookupItemID( 
   int instanceHandle,
   string* itemName,
   int propertyID
) 
C++/CLI 
public:
String^ LookupItemID( 
   int instanceHandle,
   String^ itemName,
   int propertyID
) 

Parameters

instanceHandle
Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
itemName
Fully qualified item ID.
propertyID
Identification number of the property to be assigned an item.

Return Value

Fully qualified item ID of the created property item. NULL if the request is denied or failed.

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.