The cache update handling depends on the writeCacheUpdateMode selection set in the GetModeDefinitions() implementation.
For 0 (Generic): The cache is updated in the generic server after returning from the customization WiteItems method. Items with write error are not updated in the cache.
For 1 (Custom): The customization module needs to update the cache by executing the SetItemValue callback method for each written item. The generic server does not update the cache.
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As AppPlugin Dim instanceHandle As Integer Dim values() As DeviceItemValue Dim errors As Integer() Dim value As Integer value = instance.WriteItems(instanceHandle, values, errors) |
C# | |
---|---|
public new int WriteItems( int instanceHandle, DeviceItemValue[] values, out int[] errors ) |
Parameters
- instanceHandle
- Handle the identifies the calling client application. The method GetServerInstancesInfo can be used to get name information for this handle.
- values
- object with handle, value, quality, timestamp
- errors
- array with HRESULT success/error codes on return.
Return Value
HRESULT success/error codeTarget 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