ArcGIS Pro 2.6 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.
Remarks
The string comparison used to find the name is case-insensitive.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

NetworkSource Class
NetworkSource Members