This asynchronous 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.
The results are returned via the client's UpdateComplete event handler.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function DeleteRaw( _ ByVal transactionID As Integer, _ ByVal startTime As OPCHDAtime, _ ByVal endTime As OPCHDAtime, _ ByVal server() As Integer, _ ByRef cancelID As Integer, _ ByRef errors As Integer() _ ) As Integer |
C# | |
---|---|
public int DeleteRaw( int transactionID, OPCHDAtime startTime, OPCHDAtime endTime, int[] server, out int cancelID, out int[] errors ) |
Parameters
- transactionID
- An identifier created by the client and passed to the server in this call. The server shall return this identifier along with the results of this call.
- 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.
- cancelID
- OUT: Place to return a Server generated ID to be used in case the operation needs to be canceled.
- errors
- OUT: Array of HRESULTs indicating whether the corresponding server handle was valid.
Return Value
S_OK, S_FALSE, E_NOTIMPL, E_INVALIDARG, E_FAILTarget Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x