Click or drag to resize
OSIsoft, LLC

PIPointSetAnnotation Method

Associates the annotation with the passed in value.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version:
public void SetAnnotation(
	AFValue value,
	Object annotation


Type: OSIsoft.AF.AssetAFValue
The new AFValue to be set for this PIPoint.
Type: SystemObject
The value of the annotation for this PIPoint. It can be a list of structured AFAnnotations, String, DateTime, any other primitive type such as an Int32, or an array of Byte elements. To remove an annotation from an existing archived value, set the annotation value to an Empty string.

This method associates the passed in annotation with the provided value; however, the annotation is not committed until the value is updated using UpdateValue(AFValue, AFUpdateOption).

The attribute must indicate that it supports setting annotations by including the Annotations flag in its SupportedDataMethods.

Version Information


Supported in: 2.10.5, 2.10, 2.9.5, 2.9, 2.8.5, 2.8, 2.7.5, 2.7, 2.6, 2.5
See Also
Enabling Operational Intelligence