uaPLUS Reference
UpdateDeleteRaw(DateTime,DateTime,Int32[],Int32[]) Method
See Also  Send Feedback
HDAPlugin Namespace > AppPlugin Class > UpdateDeleteRaw Method : UpdateDeleteRaw(DateTime,DateTime,Int32[],Int32[]) Method

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.
errors
Array of HRESULTS indicating whether the corresponding server handle was valid.

Glossary Item Box

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

Visual Basic (Declaration) 
Public Overloads Function UpdateDeleteRaw( _
   ByVal startTime As Date, _
   ByVal endTime As Date, _
   ByVal serverHnd() As Integer, _
   ByRef errors As Integer() _
) As Integer
C# 
public int UpdateDeleteRaw( 
   DateTime startTime,
   DateTime endTime,
   int[] serverHnd,
   out int[] errors
)

Parameters

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.
errors
Array of HRESULTS indicating whether the corresponding server handle was valid.

Return Value

HRESULTS success/error code.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family

See Also

© 2010-2018 Copyright Advosol Inc. All Rights Reserved.