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 |
---|---|---|
System.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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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 |
---|---|---|
System.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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.6 - 200.6 |
Xamarin.Android | 100.6 - 100.14 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 200.6 |