ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / RasterLayer Class / CanSetTime Method
The time parameters to set.
Version

CanSetTime Method (RasterLayer)
Gets if the mapMember supports time filtering 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
)

Parameters

timeParams
The time parameters to set.

Return Value

True if the mapMember supports time filtering 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 SetTime method.

Raster layers do not support field based time parameters; that is filtering based on attribute values. They also do not support 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.1 or higher.
See Also