OPC Historian .NET Server Toolkit Reference
UpdateDeleteRaw(Int32,DateTime,DateTime,Int32[],Int32,Int32[]) Method

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.
The beginning of the history period to be read.
The end of the history period to be read.
The list of server item handles for the items to be deleted.
Place to return a Server generated ID to be used in case the operation needs to be canceled.
Array of HRESULTs indicating whether the corresponding server handle was valid.
Professional Edition only.
This method deletes the values, qualities, and timestamps from the history database for the specified time domain for one or more items. This method 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. 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.
Syntax
'Usage
 
Dim instance As IAppPlugin
Dim transactionID As Integer
Dim startTime As Date
Dim endTime As Date
Dim serverHnd() As Integer
Dim cancelID As Integer
Dim errors As Integer()
Dim value As Integer
 
value = instance.UpdateDeleteRaw(transactionID, startTime, endTime, serverHnd, cancelID, errors)
int UpdateDeleteRaw( 
   int transactionID,
   DateTime startTime,
   DateTime endTime,
   int[] serverHnd,
   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 read.
endTime
The end of the history period to be read.
serverHnd
The list of server item handles for the items to be deleted.
cancelID
Place to return a Server generated ID to be used in case the operation needs to be canceled.
errors
Array of HRESULTs indicating whether the corresponding server handle was valid.

Return Value

HRESULTS success/error code.
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

IAppPlugin Interface
IAppPlugin Members
Overload List

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback