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

AF SDK Reference

Product Family
Current publication
Table of Contents

AFCache.MaxObjects Property

AFCache.MaxObjects Property
The maximum number of objects that the AF SDK will keep in its cache at any one time.

Namespace:  OSIsoft.AF.Diagnostics
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156

Syntax

public static int MaxObjects { get; set; }
Public Shared Property MaxObjects As Integer
	Get
	Set

Dim value As Integer

value = AFCache.MaxObjects

AFCache.MaxObjects = value
public:
static property int MaxObjects {
	int get ();
	void set (int value);
}
static member MaxObjects : int with get, set

Property Value

Type: Int32
The maximum number of objects that the AF SDK will keep in its cache at any one time. Specify a value of zero to have no cache. An individual object placed in the AF SDK cache may keep many objects from being garbage collected. Typically, the AF SDK places top-level collections in the cache.

Remarks

The default value for this property is read from the SDK's configuration file in the OSI directory under the CommonApplicationData directory. This default value will be the default for all clients executed on the computer. If this property is modified in the client, then it will only affect the current client and the modified value will not be persisted.

Version Information

AFSDK


See Also

Was this topic helpful?