This synchronous function deletes the values, qualities, and timestamps from the history database for the specified time domain for one or more items.
This function is intended to be used to delete data that has been accidentally entered into the history database; e.g., deletion of data from a source with incorrect timestamps.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function DeleteRaw( _ ByVal startTime As OPCHDAtime, _ ByVal endTime As OPCHDAtime, _ ByVal server() As Integer, _ ByRef errors As Integer() _ ) As Integer |
Parameters
- startTime
- The beginning of the history period to be deleted.
- endTime
- The end of the history period to be deleted.
- server
- The list of server item handles for the items to be deleted.
- errors
- OUT: Array of HRESULTs indicating the success of the individual item deletes. The errors correspond to the handles passed in server. This indicates whether the delete succeeded in removing the specified items. NOTE: any FAILED error code indicates that the corresponding item was not completely deleted.
Return Value
S_OK, S_FALSE, E_NOTIMPL, E_FAIL
If no data is found in the time range for a particular item, a success status of S_FALSE is returned and
the error code for that item is OPC_S_NODATA.
Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x