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: 2.10.6.195
Syntax
public void SetAnnotation(
	AFValue value,
	Object annotation
)

Parameters

value
Type: OSIsoft.AF.AssetAFValue
The new AFValue to be set for this PIPoint.
annotation
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.
Remarks

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

AFSDK

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