Show / Hide Table of Contents

Property ServiceGeodatabase

ServiceGeodatabase

Gets the ServiceGeodatabase of the UtilityNetwork.

Declaration
public ServiceGeodatabase ServiceGeodatabase { get; }
Property Value
Type Description
ServiceGeodatabase

The ServiceGeodatabase of the UtilityNetwork.

Remarks

The ServiceGeodatabase used by the ServiceFeatureTable in NetworkSources.

Use this property to switch to a branch version, manage edits, or query related records of tables participating in this UtilityNetwork.

This property is null until the UtilityNetwork is loaded. The Map that was used to create this UtilityNetwork provides this ServiceGeodatabase. When no matching ServiceGeodatabase is found in the Map, this UtilityNetwork will create and load a ServiceGeodatabase connected to the default version in Transient mode.

This property is also null when the UtilityNetwork is retrieved from Geodatabase.

Note that calling CloseAsync() on a ServiceGeodatabase that is used by a UtilityNetwork will render this UtilityNetwork unusable. An attempt to create an element, get associations, get features from elements, or perform a trace after this ServiceGeodatabase is closed will fail with GeodatabaseClosedException.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.10 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.10 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.10 - 100.12
Xamarin.Android100.10 - 100.15
Xamarin.iOS100.10 - 100.15
UWP100.10 - 100.15
In This Article
Back to top Copyright © 2022 Esri.