ArcObjects Library Reference (NetworkAnalyst)  

INARouteSolver2.StartTime Property

Specifies the time the route begins.

[Visual Basic .NET]
Public Property StartTime As DateTime
[C#]
public DateTime StartTime {get; set;}
[C++]
HRESULT get_StartTime(
  DATE* Value
);
[C++]
HRESULT put_StartTime(
  DATE Value
);
[C++]

Parameters

Value [out, retval]   Value is a parameter of type DATE Value [in]   Value is a parameter of type DATE

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

StartTime specifies the route's start time.  This property is used in conjunction with the UseStartTime property which specifies if the start time is used or not. The allowable date range (for explicit dates) is 1/1/1901 through 12/31/9999.

To specify days of the week, use the following chart:

Interpreted Day Specific Date to Pass to the Solver
Today 12/30/1899
Sunday 12/31/1899
Monday 1/1/1900
Tuesday 1/2/1900
Wednesday 1/3/1900
Thursday 1/4/1900
Friday 1/5/1900
Saturday 1/6/1900

See Also

INARouteSolver2 Interface

.NET Snippets

Statements - Set Route Properties | Set Route Properties |

.NET Samples

Network Analyst Engine application (Code Files: frmNALayerProperties) | Route application using the NAServer extension in ArcGIS Server via a GIS client (Code Files: Route_GISClientClass) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) |