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.
Visual Basic (Declaration) | |
---|---|
Overloads Function InsertAnnotations( _ ByVal serverHnd() As Integer, _ ByVal timeStamps() As Date, _ ByVal annotationValues() As AnnotationDef, _ ByRef errors As Integer() _ ) As Integer |
C# | |
---|---|
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.Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows 7, Windows Server 2008 family