ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.Realtime Namespace / RealtimeTable Class / SetExpirationMaxAge Method
The System.TimeSpan indicating rows older than this value will be removed.

In This Topic
    SetExpirationMaxAge Method (RealtimeTable)
    In This Topic
    Sets the expiration maximum age for rows. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetExpirationMaxAge( 
       TimeSpan expirationMaxAge
    )
    Public Sub SetExpirationMaxAge( _
       ByVal expirationMaxAge As TimeSpan _
    ) 

    Parameters

    expirationMaxAge
    The System.TimeSpan indicating rows older than this value will be removed.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks

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

    When RealtimeTableDefinition.HasTrackIDField is true, it represents maximum age within each track. Previous observations that are older than the maximum expiration age comparing to the latest observation in the same track, will be removed.

    When RealtimeTableDefinition.HasTrackIDField is false, rows older than the maximum expiration age, comparing to the current time, will get removed.

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

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also