Show / Hide Table of Contents

Method CreateAsync

CreateAsync(Uri)

Creates a service area task with URL.

Declaration
public static async Task<ServiceAreaTask> CreateAsync(Uri uri)
Parameters
Type Name Description
Uri uri

An url to online routing services.

Returns
Type Description
Task<ServiceAreaTask>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14
.NET 6.0100.14
.NET 6.0 Windows100.14
.NET Framework100.14
Xamarin.Android100.14
Xamarin.iOS100.14
UWP100.14

CreateAsync(Uri, String)

Creates a service area task with URL.

Declaration
public static async Task<ServiceAreaTask> CreateAsync(Uri uri, string apiKey)
Parameters
Type Name Description
Uri uri

An url to online routing services.

String apiKey

The security credential for the online routing service.

Returns
Type Description
Task<ServiceAreaTask>

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

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.10 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Xamarin.Android100.10 - 100.14
Xamarin.iOS100.10 - 100.14
UWP100.10 - 100.14

CreateAsync(String, String)

Initializes a new instance of the ServiceAreaTask class from a local geodatabase.

Declaration
public static async Task<ServiceAreaTask> CreateAsync(string pathToDatabase, string networkName)
Parameters
Type Name Description
String pathToDatabase

A file path to a geodatabase.

String networkName

A network name.

Returns
Type Description
Task<ServiceAreaTask>

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

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.2.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.14
UWP100.2.1 - 100.14

CreateAsync(TransportationNetworkDataset)

Initializes a new instance of the ServiceAreaTask class from a transportation network dataset.

Declaration
public static async Task<ServiceAreaTask> CreateAsync(TransportationNetworkDataset transportationNetwork)
Parameters
Type Name Description
TransportationNetworkDataset transportationNetwork

A transportation network dataset.

Returns
Type Description
Task<ServiceAreaTask>

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

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.2.1 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.14
Xamarin.iOS100.2.1 - 100.14
UWP100.2.1 - 100.14
In This Article
Back to top Copyright © 2021 Esri.