Show / Hide Table of Contents

Method GetNamedTraceConfigurationsFromUtilityNetworkAsync

GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork, CancellationToken)

Asynchronously retrieves a list of all UtilityNamedTraceConfiguration objects referenced by this map for the specified utility network.

Declaration
public Task<IEnumerable<UtilityNamedTraceConfiguration>> GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork utilityNetwork, CancellationToken cancellationToken)
Parameters
Type Name Description
UtilityNetwork utilityNetwork

The UtilityNetwork for which named trace configurations are retrieved.

System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken with which to cancel the operation if required.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<UtilityNamedTraceConfiguration>>

A task that represents the asynchronous retrieval of the list of all the UtilityNamedTraceConfiguration objects.

Remarks

An empty array will be returned if the UtilityNetwork does not belong to the Map or if the Map does not contain any UtilityNamedTraceConfiguration objects.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.12 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.12 - 200.7
Xamarin.Android100.12 - 100.14
Xamarin.iOS100.12 - 100.15
UWP100.12 - 200.7

GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork)

Asynchronously retrieves a list of all UtilityNamedTraceConfiguration objects referenced by the UtilityNetwork's map.

Declaration
public Task<IEnumerable<UtilityNamedTraceConfiguration>> GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork utilityNetwork)
Parameters
Type Name Description
UtilityNetwork utilityNetwork

The UtilityNetwork for which named trace configurations are retrieved.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<UtilityNamedTraceConfiguration>>

A task that represents the asynchronous retrieval of the list of all the UtilityNamedTraceConfiguration objects.

Remarks

An empty array will be returned if the UtilityNetwork does not belong to the map or if the map does not contain any UtilityNamedTraceConfiguration objects.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.11 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.11 - 200.7
Xamarin.Android100.11 - 100.15
Xamarin.iOS100.11 - 100.15
UWP100.11 - 200.7
In This Article
Back to top Copyright © 2022 Esri.