Show / Hide Table of Contents

Method GetFeaturesForElementsAsync

GetFeaturesForElementsAsync(IEnumerable<UtilityElement>, CancellationToken)

Asynchronously gets the set of loaded ArcGISFeatures referenced by a set of UtilityElements.

Declaration
public Task<IEnumerable<ArcGISFeature>> GetFeaturesForElementsAsync(IEnumerable<UtilityElement> elements, CancellationToken cancellationToken)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<UtilityElement> elements

The set of elements to get the matching features for

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<ArcGISFeature>>

A task that represents retrieval of features referenced by the specified elements. The value of the task result is a set of loaded System.Collections.Generic.IEnumerable<T>

Remarks

Gets a collection of loaded ArcGISFeature objects that each correspond to one of a collection of UtilityElement objects

Applies to

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

GetFeaturesForElementsAsync(IEnumerable<UtilityElement>)

Asynchronously gets the set of loaded ArcGISFeatures referenced by a set of UtilityElements.

Declaration
public Task<IEnumerable<ArcGISFeature>> GetFeaturesForElementsAsync(IEnumerable<UtilityElement> elements)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<UtilityElement> elements

The set of elements to get the matching features for

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

A task that represents retrieval of features referenced by the specified elements. The value of the task result is a set of loaded System.Collections.Generic.IEnumerable<T>

Remarks

Gets a collection of loaded ArcGISFeature objects that each correspond to one of a collection of UtilityElement objects

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.6 - 200.8
Xamarin.Android100.6 - 100.14
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.8
Relevant samples
Perform valve isolation trace: Run a filtered trace to locate operable features that will isolate an area from the flow of network resources.
Trace utility network: Discover connected features in a utility network using connected, subnetwork, upstream, and downstream traces.
In This Article
Back to top Copyright © 2022 Esri.