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 |
---|---|
System.Threading.Tasks.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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
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 |
---|---|
System.Threading.Tasks.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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.6 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 100.14 |