ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.Realtime Namespace / RealtimeFeatureClass Class / SetExpirationMaxCount Method
The values indicating how many features will be stored at any given time.

In This Topic
    SetExpirationMaxCount Method (RealtimeFeatureClass)
    In This Topic
    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 11, Windows 10, Windows 8.1

    See Also