AFObject.Persist Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This method returns the persistence string for the object.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public virtual string Persist()
Public Overridable Function Persist As String Dim instance As AFObject Dim returnValue As String returnValue = instance.Persist()
public: virtual String^ Persist()
abstract Persist : unit -> string override Persist : unit -> string
Return Value
Type: StringThe persistence string for the object that can be used to restore the same object later.
Implements
IPIPersistPersist
Remarks
The persistence string only contains enough information to restore the same object at
a later time. It does not contain a copy of the data within the object. To retrieve
the object using its persistence string, create a AFGlobalRestorer object
and pass it the persistence string.