OPC Historian .NET Server Toolkit Reference
GetAttributeItemData Method (IDBAPlugin)

contains the attribute IDs on entry and is filled in with the data read from the database.
If StartTime==DateTime.MinValue then return only the newest value.
Reads the attributes from the database. At least one attribute before and after the time range must be included in the returned array, unless startTime is DateTime.MinValkue, indicating that only the newest value is to be returned. The returned data has to be sorted for increasing timestamps
Syntax
'Usage
 
Dim instance As IDBAPlugin
Dim item As ItemInfo
Dim idat() As DataPointAttr
Dim startTime As Date
Dim endTime As Date
Dim value As Integer
 
value = instance.GetAttributeItemData(item, idat, startTime, endTime)
int GetAttributeItemData( 
   ItemInfo item,
   DataPointAttr[] idat,
   DateTime startTime,
   DateTime endTime
)

Parameters

item
idat
contains the attribute IDs on entry and is filled in with the data read from the database.
startTime
If StartTime==DateTime.MinValue then return only the newest value.
endTime

Return Value

HRESULT
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

IDBAPlugin Interface
IDBAPlugin Members

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback