OPC Historian .NET Server Toolkit Reference
UpdateReplace Method (AppPlugin)

Professional Edition only.
This method replaces the values and qualities in the history database at the specified timestamps for one or more items. If no value exists at the specified timestamp, the new value shall not be inserted; instead errors shall indicate an error. This method is intended to replace existing values at the specified timestamp; e.g., correct lab data that was improperly processed, but inserted into the history database. The serverHnd, timeStamps, dataValues and qualities are arrays of equal size. To replace the values for a number of different items at a single time, then timeStamps array would have the same time for each item. To replace a stream of values, timestamps and qualities for a single item, set the size of the item array to the number of values to be replaced and put the same ItemID in each element.
Overload List
OverloadDescription
UpdateReplace(Int32,Int32[],DateTime[],Object[],Int32[],Int32,Int32[])Professional Edition only.
This method replaces the values and qualities in the history database at the specified timestamps for one or more items. If no value exists at the specified timestamp, the new value shall not be inserted; instead errors shall indicate an error. This method is intended to replace existing values at the specified timestamp; e.g., correct lab data that was improperly processed, but inserted into the history database. The serverHnd, timeStamps, dataValues and qualities are arrays of equal size. To replace the values for a number of different items at a single time, then timeStamps array would have the same time for each item. To replace a stream of values, timestamps and qualities for a single item, set the size of the item array to the number of values to be replaced and put the same ItemID in each element.  
UpdateReplace(Int32[],DateTime[],Object[],Int32[],Int32[])Professional Edition only.
This method replaces the values and qualities in the history database at the specified timestamps for one or more items. If no value exists at the specified timestamp, the new value shall not be inserted; instead errors shall indicate an error. This method is intended to replace existing values at the specified timestamp; e.g., correct lab data that was improperly processed, but inserted into the history database. The serverHnd, timeStamps, dataValues and qualities are arrays of equal size. To replace the values for a number of different items at a single time, then timeStamps array would have the same time for each item. To replace a stream of values, timestamps and qualities for a single item, set the size of the item array to the number of values to be replaced and put the same ItemID in each element.  
Requirements

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

See Also

Reference

AppPlugin Class
AppPlugin Members

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback