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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.7 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.7 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.7 - 100.15
Xamarin.iOS100.7 - 100.15
UWP100.7 - 100.15
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.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.6 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 100.15

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

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.

Applies to

Platforms and versions
TargetVersions
UWP100.15

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

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.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.