public override void GetUrl(Envelope extent, int width, int height, DynamicMapServiceLayer.OnUrlComplete onComplete) { ... }
if (this.Autorefresh==true) { //autorefresh mapURL.AppendFormat("&t={0:hhmmss}", DateTime.Now); } else if (this.VisibleTimeExtent != null) { if (this.VisibleTimeExtent.Start == this.VisibleTimeExtent.End) { mapURL.AppendFormat("&TIME={0:yyyy-MM-ddTHH:mm:ss.sssZ}", this.VisibleTimeExtent.Start); } else { mapURL.AppendFormat("&TIME={0:yyyy-MM-ddTHH:mm:ss.sssZ}/{1:yyyy-MM-ddTHH:mm:ss.sssZ}", this.VisibleTimeExtent.Start, this.VisibleTimeExtent.End); } }