The specified item is deleted in the generic server cache. Only items that are not currently referenced by any client (not added to a group by a client) can be deleted.
Visual Basic (Usage) | ![]() |
---|---|
Dim appItemHandle As Integer Dim value As Integer value = GenericServer.DeleteItem(appItemHandle) |
C# | |
---|---|
public static int DeleteItem( int appItemHandle ) |
Parameters
- appItemHandle
- The handle that was specified when the item was added.
Return Value
Success/failure code:S_OK (0x0) the item was deleted
OPC_E_NOTFOUND (0xC0040011) an item with the specified handle couldn't be found
OPC_E_BADRIGHTS (0xC0040006) the item is in use and could not be deleted
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