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


IMapTimeDescription.TimeReference Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMapTimeDescription.TimeReference Property

Time reference used by the time aware content.

[Visual Basic .NET]
Public Property TimeReference As ITimeReference
[C#]
public ITimeReference TimeReference {get; set;}
[C++]
HRESULT get_TimeReference(
  ITimeReference** TimeReference
);
[C++]
HRESULT putref_TimeReference(
  ITimeReference* TimeReference
);
[C++]

Parameters TimeReference [out, retval]
TimeReference is a parameter of type ITimeReference TimeReference [in]
TimeReference is a parameter of type ITimeReference

Product Availability

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

Remarks

You should set this property when the TimeValue that you are passing in is in different timezone that any of the dataframe's or layer's TimeReference in the MapServer.

When TimeReference is set to Null/Nothing, MapServer assumes the TimeValue is in layer's TimeReference while searching features from layer. For example, there may be two layers in the map, one is in Pacific Standard Time (PST) and the other is in Eastern Standard Time (EST). If the TimeValue you are passing in is PST, but you have TimeReference is set to Null, when MapServer searches for feature for the first layer, it will assume the input TimeValue is in PST and find the correct features. While it searches for the features from the second layer, it will assume the input TimeValue is in EST and will get incorrect features.

See Also

IMapTimeDescription Interface