OPCHDA.NET-UA
DeleteRaw(OPCHDAtime,OPCHDAtime,Int32[],Int32[]) Method
See Also  Send Feedback
OpcHDaNetUaOption.Net4 Assembly > hdaUAwrapper Namespace > HDAServer Class > DeleteRaw Method : DeleteRaw(OPCHDAtime,OPCHDAtime,Int32[],Int32[]) Method

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.

Glossary Item Box

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.

Syntax

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
C# 
public int DeleteRaw( 
   OPCHDAtime startTime,
   OPCHDAtime endTime,
   int[] server,
   out int[] errors
)

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

Remarks

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.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.