PIServer.GetAnnotations Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the annotations associated with list of historical events.
Namespace: OSIsoft.AF.PI
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFListResults<AFValue, Object> GetAnnotations( IList<AFValue> values )
Public Function GetAnnotations ( values As IList(Of AFValue) ) As AFListResults(Of AFValue, Object) Dim instance As PIServer Dim values As IList(Of AFValue) Dim returnValue As AFListResults(Of AFValue, Object) returnValue = instance.GetAnnotations(values)
public: AFListResults<AFValue^, Object^>^ GetAnnotations( IList<AFValue^>^ values )
member GetAnnotations : values : IList<AFValue> -> AFListResults<AFValue, Object>
Parameters
Return Value
Type: AFListResultsAFValue, ObjectReturns a list of annotation objects with indices corresponding to the value in the input list, along with any errors. Each annotation object can be a structured AFAnnotations, or a single value of type Byte[], String, DateTime, AFTime, or a primitive type. If there is no associated annotation or a corresponding error, the result value will be .
Remarks
This method will retrieve the annotations associated with historical events. To update an existing annotation, use the SetAnnotation(Object) method.