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

AF SDK Reference

AFAnnotation.ID Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFAnnotation.ID Property
The unique identifier for the annotation.

Namespace:  OSIsoft.AF.Data
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public Guid ID { get; set; }
Public Property ID As Guid
	Get
	Set

Dim instance As AFAnnotation
Dim value As Guid

value = instance.ID

instance.ID = value
public:
property Guid ID {
	Guid get ();
	void set (Guid value);
}
member ID : Guid with get, set

Property Value

Type: Guid
Returns the unique identifier for the annotation. Defaults to a new Guid when created. This property can only be set if it is a PIPoint annotation.

Exceptions

ExceptionCondition
InvalidOperationException An InvalidOperationException will be thrown if this property is changed and is not a PIPoint annotation.

Version Information

AFSDK


See Also

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