Show / Hide Table of Contents

Method CreateElement

CreateElement(ArcGISFeature)

Creates a UtilityElement from a feature.

Declaration
public UtilityElement CreateElement(ArcGISFeature arcGISFeature)
Parameters
Type Name Description
ArcGISFeature arcGISFeature

The ArcGIS feature from which this feature element is created.

Returns
Type Description
UtilityElement UtilityElement
Remarks

If the feature's AssetType supports a TerminalConfiguration, a default UtilityTerminal will be assigned.

Exceptions
Type Condition
System.ArgumentException

The input feature does not belong to this utility network.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.7 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.7 - 200.7
Xamarin.Android100.7 - 100.15
Xamarin.iOS100.7 - 100.15
UWP100.7 - 200.7
Relevant samples
Trace utility network: Discover connected features in a utility network using connected, subnetwork, upstream, and downstream traces.

CreateElement(ArcGISFeature, UtilityTerminal)

Creates a UtilityElement from a feature.

Declaration
public UtilityElement CreateElement(ArcGISFeature arcGISFeature, UtilityTerminal terminal = null)
Parameters
Type Name Description
ArcGISFeature arcGISFeature

The ArcGIS feature from which this feature element is created.

UtilityTerminal terminal

The UtilityTerminal.

Returns
Type Description
UtilityElement UtilityElement
Remarks

If the optional terminal is not supplied, and the feature's AssetType supports a TerminalConfiguration, a default UtilityTerminal will be assigned.

Exceptions
Type Condition
System.ArgumentException

The input feature does not belong to this utility network.

System.ArgumentException

Terminal does not belong to the feature's asset type.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7

CreateElement(UtilityAssetType, Guid)

Creates a UtilityElement from a UtilityAssetType and a global ID.

Declaration
public UtilityElement CreateElement(UtilityAssetType assetType, Guid globalId)
Parameters
Type Name Description
UtilityAssetType assetType

The UtilityAssetType of the feature from which this feature element is created

System.Guid globalId

The global ID of the feature from which this feature element is created

Returns
Type Description
UtilityElement UtilityElement
Remarks

If the AssetType supports a TerminalConfiguration, a default UtilityTerminal will be assigned.

Exceptions
Type Condition
System.ArgumentException

Asset type does not belong to this utility network.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.7 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.7 - 200.7
Xamarin.Android100.7 - 100.14
Xamarin.iOS100.7 - 100.15
UWP100.7 - 200.7
Relevant samples
Configure subnetwork trace: Get a server-defined trace configuration for a given tier and modify its traversability scope, add new condition barriers and control what is included in the subnetwork trace result.
Perform valve isolation trace: Run a filtered trace to locate operable features that will isolate an area from the flow of network resources.

CreateElement(UtilityAssetType, Guid, UtilityTerminal)

Creates a UtilityElement from a UtilityAssetType, a global ID, and an optional UtilityTerminal.

Declaration
public UtilityElement CreateElement(UtilityAssetType assetType, Guid globalId, UtilityTerminal terminal = null)
Parameters
Type Name Description
UtilityAssetType assetType

The UtilityAssetType of the feature from which this feature element is created

System.Guid globalId

The global ID of the feature from which this feature element is created

UtilityTerminal terminal

The UtilityTerminal

Returns
Type Description
UtilityElement UtilityElement
Remarks

If the optional terminal is not supplied, and the feature's AssetType supports a TerminalConfiguration, a default ref UtilityTerminal will be assigned.

Exceptions
Type Condition
System.ArgumentException

Asset type does not belong to this utility network.

System.ArgumentException

Terminal does not belong to the feature's asset type.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.14
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7
In This Article
Back to top Copyright © 2022 Esri.