The cache update handling depends on the configuration parameter writeCacheUpdateMode 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 (Declaration) | |
---|---|
Public Overloads Function WriteItems( _ ByVal values() As DeviceItemValue, _ ByRef errors As Integer() _ ) As Integer |
C# | |
---|---|
public int WriteItems( DeviceItemValue[] values, out int[] errors ) |
Parameters
- values
- object with handle, value, quality, timestamp
- errors
- array with HRESULT success/error codes on return.
Return Value
HRESULT success/error codeTarget Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family