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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.7 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.7 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.7 - 100.15 |
| Xamarin.iOS | 100.7 - 100.15 |
| UWP | 100.7 - 100.15 |
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.
Applies to
Platforms and versions
| 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 |
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.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.7 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.7 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.7 - 100.15 |
| Xamarin.iOS | 100.7 - 100.15 |
| UWP | 100.7 - 100.14 |
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.
Applies to
Platforms and versions
| 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.14 |