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

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.
server
The list of server item handles for the items to be deleted.
timeStamps
The timestamps for the data 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.

Glossary Item Box

This asynchronous function is intended to be used to delete specific data from the history database; e.g., lab data that is incorrect and cannot be correctly reproduced.

The results are returned via the client's UpdateComplete event handler.

This function deletes the values and qualities in the history database for the specified timestamps for one or more items.

Syntax

Visual Basic (Declaration) 
Public Overloads Function DeleteAtTime( _
   ByVal transactionID As Integer, _
   ByVal server() As Integer, _
   ByVal timeStamps() As Date, _
   ByRef cancelID As Integer, _
   ByRef errors As Integer() _
) As Integer
C# 
public int DeleteAtTime( 
   int transactionID,
   int[] server,
   DateTime[] timeStamps,
   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.
server
The list of server item handles for the items to be deleted.
timeStamps
The timestamps for the data 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_FAIL

Requirements

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

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.