ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MapMember Class / SetTime Method

In This Topic
    SetTime Method
    In This Topic
    Sets the specified time parameters for the mapMember. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetTime( 
       TimeParameters timeParams
    )
    Public Sub SetTime( _
       ByVal timeParams As TimeParameters _
    ) 

    Parameters

    timeParams
    Exceptions
    ExceptionDescription
    The timeParams are null.
    The mapMember does not support time or the timeParams are invalid.
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    You should always check using the CanSetTime method before calling this method.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also