Show / Hide Table of Contents

Method CreateAsync

CreateAsync(Uri)

Creates and loads utility network using the URI to the feature service.

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

The URI to the Feature Service.

Returns
Type Description
Task<UtilityNetwork>

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

Applies to

Platforms and versions
TargetVersions
UWP100.15

CreateAsync(Uri, Credential)

Creates and loads utility network using the URI to the feature service.

Declaration
public static async Task<UtilityNetwork> CreateAsync(Uri uri, Credential credential)
Parameters
Type Name Description
Uri uri

The URI to the Feature Service.

Credential credential

The security credential for the feature service.

Returns
Type Description
Task<UtilityNetwork>

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

Applies to

Platforms and versions
TargetVersions
UWP100.15

CreateAsync(Uri, Map)

Creates and loads utility network using the URL to the feature service and a map.

Declaration
public static async Task<UtilityNetwork> CreateAsync(Uri uri, Map map)
Parameters
Type Name Description
Uri uri

The URI to the Feature Service.

Map map

A Map that provides FeatureTables to be reused by the utility network.

Returns
Type Description
Task<UtilityNetwork>

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

Remarks

Creates a utility network associated with a particular service, using the same ArcGISFeatureTable instances in use by FeatureLayer instances within the map. This lets any UtilityElement or ArcGISFeature instances the UtilityNetwork creates or uses be associated with those existing tables and layers. Usually used when instantiating a UtilityNetwork object from a web map.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.