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.

CancellationToken cancellationToken

A CancellationToken with which to cancel the operation if required.

Returns
Type Description
Task<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.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 iOS200
.NET Framework100.12 - 200.0
.NET 5100.12
.NET Core 3.1100.12
Android100.12 - 100.14
iOS100.12 - 100.15
UWP100.12 - 200.0

GetNamedTraceConfigurationsFromUtilityNetworkAsync(UtilityNetwork)

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)
Parameters
Type Name Description
UtilityNetwork utilityNetwork

The UtilityNetwork for which named trace configurations are retrieved.

Returns
Type Description
Task<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.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.11 - 200.0
.NET 5100.11 - 100.12
.NET Core 3.1100.11 - 100.12
Android100.11 - 100.15
iOS100.11 - 100.15
UWP100.11 - 200.0
In This Article
Back to top Copyright © 2022 Esri.