ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / CatalogLayer Class / CanSetTime Method
The time parameters to set.

In This Topic
    CanSetTime Method (CatalogLayer)
    In This Topic
    Gets if the mapMember supports time and if the specified time parameters are valid. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public override bool CanSetTime( 
       TimeParameters timeParams
    )
    Public Overrides NotOverridable Function CanSetTime( _
       ByVal timeParams As TimeParameters _
    ) As Boolean

    Parameters

    timeParams
    The time parameters to set.

    Return Value

    True if the mapMember supports time and the timeParams are valid. False otherwise.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    You should use this method before calling the MapMember.SetTime method.

    Catalog layers do not suport TimeParameters.TimeOffset, TimeParameters.StepInterval or TimeIntervalType when only start or end dates are specified.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also