ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapMember Class / GetDataTimeExtent Method
The data field name to obtain the time extent for.

In This Topic
    GetDataTimeExtent Method
    In This Topic
    Gets the time extent of the data for the specified fieldName - that is the minimum and maximum dates present in the data. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public TimeExtent GetDataTimeExtent( 
       string fieldName
    )
    Public Function GetDataTimeExtent( _
       ByVal fieldName As String _
    ) As TimeExtent

    Parameters

    fieldName
    The data field name to obtain the time extent for.

    Return Value

    Exceptions
    ExceptionDescription
    fieldName is null or empty.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    Use this method to retrieve the minimum and maximum dates for a specific field. It calculates the full time extent using all the rows in the table. If the returned time extent is empty, it likely means that the time field did not contain any valid time stamps in a supported time format. The time extent returned can be used to set a time filter on the mapMember via the SetTime method.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also