AFEventFrames.KeepInMemory Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
This property allows the collection to keep its items locked in memory.
Namespace: OSIsoft.AF.EventFrame
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public bool KeepInMemory { get; set; }
Public Property KeepInMemory As Boolean Get Set Dim instance As AFEventFrames Dim value As Boolean value = instance.KeepInMemory instance.KeepInMemory = value
public: property bool KeepInMemory { bool get (); void set (bool value); }
member KeepInMemory : bool with get, set
Property Value
Type: BooleanBy default, this property is . Returns if all of the collection's items are locked in memory and cannot be garbage collected. Setting this property to will lock all of the collection's items in memory to prevent them from being garbage collected. Setting this property to will unlock all of the collection's items so they can be garbage collected.
Remarks
You would normally set this property to if you wanted to ensure that
the collection's items would not be garbage collected while you were using the entire list
of items.