AFAnnotation.CreationDate Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
The time when the annotation was created.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public AFTime CreationDate { get; set; }
Public Property CreationDate As AFTime Get Set Dim instance As AFAnnotation Dim value As AFTime value = instance.CreationDate instance.CreationDate = value
public: property AFTime CreationDate { AFTime get (); void set (AFTime value); }
member CreationDate : AFTime with get, set
Property Value
Type: AFTimeReturns the time when the annotation was created. Defaults to the current time. If this is not a PIPoint annotation, then it can only be set for new objects that have not been saved to the server. Once it has been saved, it cannot be modified unless 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. |