Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFEnumerationSet.Persist Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEnumerationSet.Persist Method
This method returns the persistence string for the object.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public override string Persist()
Public Overrides Function Persist As String

Dim instance As AFEnumerationSet
Dim returnValue As String

returnValue = instance.Persist()
public:
virtual String^ Persist() override
abstract Persist : unit -> string 
override Persist : unit -> string 

Return Value

Type: String
The 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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in