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 |
|---|---|---|
| IEnumerable<UtilityElement> | elements | The set of elements to get the matching features for |
| CancellationToken | cancellationToken | A CancellationToken with which to cancel the operation if required. |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<ArcGISFeature>> | A collection of loaded ArcGISFeature. |
Remarks
Gets a collection of loaded ArcGISFeature objects that each correspond to one of a collection of UtilityElement objects
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.12 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.12 - 200.8 |
| Xamarin.Android | 100.12 - 100.14 |
| Xamarin.iOS | 100.12 - 100.15 |
| UWP | 100.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 |
|---|---|---|
| IEnumerable<UtilityElement> | elements | The set of elements to get the matching features for |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<ArcGISFeature>> | A collection of loaded ArcGISFeature. |
Remarks
Gets a collection of loaded ArcGISFeature objects that each correspond to one of a collection of UtilityElement objects
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.2 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.6 - 200.8 |
| Xamarin.Android | 100.6 - 100.14 |
| Xamarin.iOS | 100.6 - 100.15 |
| UWP | 100.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.