ArcGIS Pro 2.7 API Reference Guide
GetAssetType Method

ArcGIS.Core.Data.UtilityNetwork Namespace > AssetGroup Class : GetAssetType Method
The name of the AssetType to return.
Gets an AssetType object with the specified name. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public AssetType GetAssetType( 
   string assetTypeName
)
Public Function GetAssetType( _
   ByVal assetTypeName As String _
) As AssetType

Parameters

assetTypeName
The name of the AssetType to return.

Return Value

The AssetType that corresponds to assetTypeName.
Exceptions
ExceptionDescription

assetTypeName is null or an empty string.

-or-

There is no AssetType that corresponds to assetTypeName.

A geodatabase-related exception has occurred.
Remarks
The string comparison used to find the name is case-insensitive.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

AssetGroup Class
AssetGroup Members