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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.7 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.7 - 200.8 | 
| Xamarin.Android | 100.7 - 100.15 | 
| Xamarin.iOS | 100.7 - 100.15 | 
| UWP | 100.7 - 200.8 | 
Relevant samples
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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.0 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.6 - 200.8 | 
| Xamarin.Android | 100.6 - 100.15 | 
| Xamarin.iOS | 100.6 - 100.15 | 
| UWP | 100.6 - 200.8 | 
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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.7 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.7 - 200.8 | 
| Xamarin.Android | 100.7 - 100.14 | 
| Xamarin.iOS | 100.7 - 100.15 | 
| UWP | 100.7 - 200.8 | 
Relevant samples
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
| Target | Versions | 
|---|---|
| .NET Standard 2.0 | 100.6 - 200.8 | 
| .NET | 100.13 - 200.8 | 
| .NET Windows | 100.13 - 200.8 | 
| .NET Android | 200.2 - 200.8 | 
| .NET iOS | 200.0 - 200.8 | 
| .NET Framework | 100.6 - 200.8 | 
| Xamarin.Android | 100.6 - 100.14 | 
| Xamarin.iOS | 100.6 - 100.15 | 
| UWP | 100.6 - 200.8 |