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

AF SDK Reference

AFEventFrames.KeepInMemory Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFEventFrames.KeepInMemory Property
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: Boolean
By 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.

Version Information

AFSDK


See Also

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