This document is archived and information here might be outdated.  Recommended version.


IMapTimeDescription Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapTimeDescription Interface
ArcGIS Developer Help

IMapTimeDescription Interface

Provides access to time properties of a MapDescription.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Read/write property TimeReference Time reference used by the time aware content.
Read/write property TimeValue Time value that will be used by the time aware content of the map.

Classes that implement IMapTimeDescription

Classes Description
MapDescription The Map Description coclass contains settings of a map in the current document.
[C#]

Example: setting time to a MapDescription

IMapTimeDescription pMapTimeDesc = pMapDesc as IMapTimeDescription;

ITime pTime = new TimeClass();
// date-time in YYYY/MM/DD hh:mm:ss format
pTime.SetFromTimeString(esriTimeStringFormat.esriTSFYearThruSecondWithSlash, "2000/01/01 08:00:00");

ITimeInstant pTimeInstant = new TimeInstantClass();
pTimeInstant.Time = pTime;
pTimeInstant.TimeReference = pMapTimeDesc.TimeReference;

pMapTimeDesc.TimeValue = pTimeInstant;