Click or drag to resize
OSIsoft, LLC

PIPointUpdateValue Method (AFValue, AFUpdateOption)

This method writes or replaces a value in the PI Data Archive.

Namespace:  OSIsoft.AF.PI
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 2.10.6.195
Syntax
public void UpdateValue(
	AFValue value,
	AFUpdateOption option
)

Parameters

value
Type: OSIsoft.AF.AssetAFValue
The value to be written, replaced, or removed in PI.
option
Type: OSIsoft.AF.DataAFUpdateOption
An enumeration value that specifies how to treat duplicate values in the archive. It can also be used to specify that an existing value should be removed.
Exceptions
ExceptionCondition
ArgumentNullException The value is .
PIExceptionError returned by the PI Data Archive.
Remarks

If not specified in AFSDK.config, the AFBufferOption is defaulted to BufferIfPossible. The default buffering option for the current AF SDK client instance can be modified via the static property AFData.BufferOption.

Important note Important
Exception reporting is not handled automatically by the AF SDK. Historically, exception reporting has been handled by the application writing data (i.e. Uniint-based interfaces).

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