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

The list of server item handles for the annotation items to be inserted.
Array of time stamps for the annotations to be inserted.
Array of objects containing the annotation values to be inserted.
Array of HRESULTS indicating the success of the individual annotation inserts. The errors correspond to the handles passed in phServer.
Professional Edition only.
This method inserts annotations into the history database. This method is intended to insert annotations by users to document observations for a value at a specified timestamp.
Syntax
'Usage
 
Dim instance As AppPlugin
Dim serverHnd() As Integer
Dim timeStamps() As Date
Dim annotationValues() As AnnotationDef
Dim errors As Integer()
Dim value As Integer
 
value = instance.InsertAnnotations(serverHnd, timeStamps, annotationValues, errors)
public int InsertAnnotations( 
   int[] serverHnd,
   DateTime[] timeStamps,
   AnnotationDef[] annotationValues,
   out int[] errors
)

Parameters

serverHnd
The list of server item handles for the annotation items to be inserted.
timeStamps
Array of time stamps for the annotations to be inserted.
annotationValues
Array of objects containing the annotation values to be inserted.
errors
Array of HRESULTS indicating the success of the individual annotation inserts. The errors correspond to the handles passed in phServer.

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

AppPlugin Class
AppPlugin Members
Overload List

 

 


Copyright © 2004-2019 Advosol Inc. All rights reserved

Send Feedback