ArcGIS Pro 2.6 API Reference Guide
SetExpirationMaxCount Method (RealtimeFeatureClass)

ArcGIS.Core.Data.Realtime Namespace > RealtimeFeatureClass Class : SetExpirationMaxCount Method
The values indicating how many features will be stored at any given time.
Gets the expiration maximum feature count. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetExpirationMaxCount( 
   ulong expirationMaxCount
)
Public Sub SetExpirationMaxCount( _
   ByVal expirationMaxCount As ULong _
) 

Parameters

expirationMaxCount
The values indicating how many features will be stored at any given time.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Remarks

You need to set SetExpirationMethod to RowExpirationMethod.MaxCount to get that in effect.

When RealtimeFeatureClassDefinition.HasTrackIDField is true, it represents total number of features within each track.

When RealtimeFeatureClassDefinition.HasTrackIDField is false, it represents total number of features.

If you don't want any features removed, set this value to 0.

It uses FIFO method - the first one comes in is the first one to be removed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

RealtimeFeatureClass Class
RealtimeFeatureClass Members