AFBaseElement.GetAnnotations Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Retrieves a collection of existing AFAnnotation objects belonging to this
AFBaseElement.
Namespace: OSIsoft.AF.Asset
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public IList<AFAnnotation> GetAnnotations()
Public Function GetAnnotations As IList(Of AFAnnotation) Dim instance As AFBaseElement Dim returnValue As IList(Of AFAnnotation) returnValue = instance.GetAnnotations()
public: IList<AFAnnotation^>^ GetAnnotations()
member GetAnnotations : unit -> IList<AFAnnotation>
Return Value
Type: IListAFAnnotationReturns the IListT collection of AFAnnotation objects belonging to this AFBaseElement.
Remarks
This method retrieves a collection of AFAnnotation objects belonging to this AFBaseElement. Annotations are added to this collection by creating a new AFAnnotation and specifying this element as the owner and calling one of the Save Overload methods. Annotations are removed from this collection by calling the Delete method.
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |