ArcGIS Pro 2.8 API Reference Guide
GetAssetGroup Method

ArcGIS.Core.Data.UtilityNetwork Namespace > NetworkSource Class : GetAssetGroup Method
The name of the AssetGroup to return.
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 10, Windows 8.1

See Also

Reference

NetworkSource Class
NetworkSource Members