Click or drag to resize

RouteTaskCreateParametersAsync Method (FeatureCollection)

Imports route parameters from feature collection and then adjusts imported parameters to current Route task.

Namespace:  Esri.ArcGISRuntime.Tasks.NetworkAnalysis
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version:
public Task<RouteParameters> CreateParametersAsync(
	FeatureCollection collection


Type: Esri.ArcGISRuntime.DataFeatureCollection
The feature collection object that contains stops, route info, and barriers tables. Stops table is required.

Return Value

Type: TaskRouteParameters
The task object representing the asynchronous create default parameters operation. The value of the task result is a RouteParameters object.
Travel mode would be null if it could not be created from the route layer settings for the route task's network. In case if travel mode is null then client can override it by another travel mode (for example obtained from RouteTaskInfo ). Accumulate attributes from Route Info table going to be applied only if they exist in transportation network restriction and cost attributes.
See Also