AFAnnotation.ID Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
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: GuidReturns 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
| Exception | Condition |
|---|---|
| InvalidOperationException | An InvalidOperationException will be thrown if this property is changed and is not a PIPoint annotation. |