ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / NetworkSource Class / GetAssetGroup Method
The name of the AssetGroup to return.

In This Topic
    GetAssetGroup Method
    In This Topic
    Gets an AssetGroup object with the specified name. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public AssetGroup GetAssetGroup( 
       string assetGroupName
    )
    Public Function GetAssetGroup( _
       ByVal assetGroupName As String _
    ) As AssetGroup

    Parameters

    assetGroupName
    The name of the AssetGroup to return.

    Return Value

    The AssetGroup that corresponds to assetGroupName if exists; otherwise, null.
    Exceptions
    ExceptionDescription
    assetGroupName is null or an empty string.
    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    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