ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / StreamLayer Class / GetExpirationMaxAge Method

In This Topic
    GetExpirationMaxAge Method (StreamLayer)
    In This Topic
    Gets the expiration maximum age for features. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TimeSpan GetExpirationMaxAge()
    Public Function GetExpirationMaxAge() As TimeSpan

    Return Value

    The System.TimeSpan indicating the ExpirationMaxAge
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Stream service data connection is null.
    Remarks
    When FeatureLayer.IsTrackAware is true, ExpirationMaxAge represents the maximum age within each track. Previous observations older than the maximum expiration age, compared to the latest observation in the same track, will be removed. When FeatureLayer.IsTrackAware is false, features older than the maximum expiration age, comparing to the current time, will get removed.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also