Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFBaseElement.GetAnnotations Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFBaseElement.GetAnnotations Method
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: IListAFAnnotation
Returns 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.

Note Notes to Callers
This method, property, or class is not available in the legacy .NET 3.5 version of the SDK.

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0, 2.10.11, 2.10.5, 2.10.0, 2.10, 2.9.5, 2.9, 2.8.5, 2.8

See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in