ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / AssetGroup Class / GetAssetType Method
The name of the AssetType to return.

In This Topic
    GetAssetType Method
    In This Topic
    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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also