Show / Hide Table of Contents

Method CreateParametersAsync

CreateParametersAsync(PortalItem)

Imports route parameters from portal item and then adjusts imported parameters to current Route task.

Declaration
public Task<RouteParameters> CreateParametersAsync(PortalItem portalItem)
Parameters
Type Name Description
PortalItem portalItem

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

Returns
Type Description
Task<RouteParameters>

The task object representing the asynchronous create parameters operation. The value of the task result is a RouteParameters object.

Remarks

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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.3 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.3 - 100.14
Xamarin.iOS100.3 - 100.14
UWP100.3 - 100.14
In This Article
Back to top Copyright © 2021 Esri.