AFUpdateOption Enumeration
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Indicates how to treat duplicate values in the archive, when supported by the Data Reference.
Namespace: OSIsoft.AF.Data
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public enum AFUpdateOption
Public Enumeration AFUpdateOption Dim instance As AFUpdateOption
public enum class AFUpdateOption
type AFUpdateOption
Members
| Member name | Value | Description | |
|---|---|---|---|
| Replace | 0 | Add the value to the archive. If any values exist at the same time, will overwrite one of them and set its Substituted flag. | |
| Insert | 1 | Add the value to the archive. Any existing values at the same time are not overwritten. | |
| NoReplace | 2 | Add the value to the archive only if no value exists at the same time. If a value already exists for that time, the passed value is ignored. | |
| ReplaceOnly | 3 | Replace an existing value in the archive at the specified time. If no existing value is found, the passed value is ignored. | |
| InsertNoCompression | 5 | Add the value to the archive without compression. If this value is written to the snapshot, the previous snapshot value will be written to the archive, without regard to compression settings. Note that if a subsequent snapshot value is written without the InsertNoCompression option, the value added with the InsertNoCompression option is still subject to compression. | |
| Remove | 6 | Remove the value from the archive if a value exists at the passed time. |
Remarks
| This method, property, or class is not available in the legacy .NET 3.5 version of the SDK. |