AFGlobalSettings.NextIDBlockSize Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public static int NextIDBlockSize { get; set; }
Public Shared Property NextIDBlockSize As Integer Get Set Dim value As Integer value = AFGlobalSettings.NextIDBlockSize AFGlobalSettings.NextIDBlockSize = value
public: static property int NextIDBlockSize { int get (); void set (int value); }
static member NextIDBlockSize : int with get, set
Property Value
Type: Int32Returns the number of unique identifiers to allocate from the server at a time. The default value is 100.
Remarks
This setting determines the number of unique identifiers to allocate from the server in each call. This is used to generate unique identifiers for new AFEventFrame objects. The smaller the number the more remote calls to the server are required to allocate new blocks of unique identifiers. Once allocated to a client, they will never be used again to avoid generating duplicates.
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.