Show / Hide Table of Contents

Method GetAssetType

GetAssetType(String)

Gets the associated UtilityAssetType with specified asset type name.

Declaration
public UtilityAssetType GetAssetType(string assetTypeName)
Parameters
Type Name Description
System.String assetTypeName

The name of asset type to retrieve.

Returns
Type Description
UtilityAssetType

UtilityAssetType associated with the specified asset type name; or null if no match was found.

Remarks

For example, a UtilityAssetGroup describing electrical transformers may contain a UtilityAssetType for a specific type of electrical transformer with a name such as "Single-phase Distribution Transformer".

Exceptions
Type Condition
System.ArgumentNullException

assetTypeName is null.

ArgumentException

Value of assetTypeName is empty.

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
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.
In This Article
Back to top Copyright © 2022 Esri.