Click or drag to resize

RouteTaskCreateParametersAsync Method (PortalItem)

Imports route parameters from portal item 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(
	PortalItem portalItem


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

Return Value

Type: TaskRouteParameters
The task object representing the asynchronous create 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