Class UtilityNetwork
An instance of this class represents the central Utility Network.
Namespace: Esri.ArcGISRuntime.UtilityNetworks
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class UtilityNetwork : INotifyPropertyChanged, ILoadable
Remarks
This is the central class for utility network schema information and tracing. UtilityNetwork follows the ILoadable pattern. When it loads, it is populated with the utility network schema. This class provides methods to create UtilityElement objects for the UtilityNetwork.
Constructors
Name | Description |
---|---|
UtilityNetwork(Uri) | Initializes a new instance of the UtilityNetwork class using the URI to the feature service. |
UtilityNetwork(Uri, Map) | Initializes a new instance of the UtilityNetwork class using the URL to the feature service and a map. |
Properties
Name | Description |
---|---|
Definition | Gets the definition of the utility network. |
Geodatabase | Gets the Geodatabase that contains this UtilityNetwork. |
LoadError | Gets the exception associated with a failed load. This property remains |
LoadStatus | Gets the current load status. |
Name | Gets the name of the utility network. |
ServiceGeodatabase | Gets the ServiceGeodatabase of the UtilityNetwork. |
Uri | Gets the feature service URI used to create utility network. |
Methods
Name | Description |
---|---|
CancelLoad() | Cancel the previous load operation. |
CreateAsync(Uri) | Creates and loads utility network using the URI to the feature service. |
CreateAsync(Uri, Map) | Creates and loads utility network using the URL to the feature service and a map. |
CreateElement(ArcGISFeature) | Creates a UtilityElement from a feature. |
CreateElement(ArcGISFeature, UtilityTerminal) | Creates a UtilityElement from a feature. |
CreateElement(UtilityAssetType, Guid) | Creates a UtilityElement from a UtilityAssetType and a global ID. |
CreateElement(UtilityAssetType, Guid, UtilityTerminal) | Creates a UtilityElement from a UtilityAssetType, a global ID, and an optional UtilityTerminal. |
GetAssociationsAsync(Envelope) | Asynchronously retrieves a list of all UtilityAssociation objects (with their geometry) present
in the geodatabase for a given |
GetAssociationsAsync(Envelope, UtilityAssociationType) | Asynchronously retrieves a list of all UtilityAssociation objects (with their geometry)
of type |
GetAssociationsAsync(Envelope, UtilityAssociationType, CancellationToken) | Asynchronously retrieves a list of all UtilityAssociation objects (with their geometry)
of type |
GetAssociationsAsync(Envelope, CancellationToken) | Asynchronously retrieves a list of all UtilityAssociation objects (with their geometry) present
in the geodatabase for a given |
GetAssociationsAsync(UtilityElement) | Asynchronously retrieves a list of all UtilityAssociations in the geodatabase for a given UtilityElement. |
GetAssociationsAsync(UtilityElement, UtilityAssociationType) | Asynchronously retrieves a list of all UtilityAssociations of type UtilityAssociationType present in the geodatabase for a given UtilityElement. |
GetAssociationsAsync(UtilityElement, UtilityAssociationType, CancellationToken) | Asynchronously retrieves a list of all UtilityAssociations of type UtilityAssociationType present in the geodatabase for a given UtilityElement. |
GetAssociationsAsync(UtilityElement, CancellationToken) | Asynchronously retrieves a list of all UtilityAssociations in the geodatabase for a given UtilityElement. |
GetFeaturesForElementsAsync(IEnumerable<UtilityElement>) | Asynchronously gets the set of loaded ArcGISFeatures referenced by a set of UtilityElements. |
GetFeaturesForElementsAsync(IEnumerable<UtilityElement>, CancellationToken) | Asynchronously gets the set of loaded ArcGISFeatures referenced by a set of UtilityElements. |
LoadAsync() | Asynchronously initiates loading of this utility network. |
QueryNamedTraceConfigurationsAsync(UtilityNamedTraceConfigurationQueryParameters) | Asynchronously retrieves a list of all UtilityNamedTraceConfiguration objects
matching the optional |
QueryNamedTraceConfigurationsAsync(UtilityNamedTraceConfigurationQueryParameters, CancellationToken) | Asynchronously retrieves a list of all UtilityNamedTraceConfiguration objects
matching the optional |
RetryLoadAsync() | Asynchronously retries loading of this utility network. |
TraceAsync(UtilityTraceParameters) | Asynchronously begins a trace with the supplied UtilityTraceParameters. |
TraceAsync(UtilityTraceParameters, CancellationToken) | Asynchronously begins a trace with the supplied UtilityTraceParameters. |
Events
Name | Description |
---|---|
Loaded | Occurs when the utility network is loaded. |
LoadStatusChanged | Occurs when the utility network LoadStatus is changed. |
PropertyChanged | Occurs when a property value changes. |
Applies to
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.15 |