ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / UtilityNetworkDefinition Class / GetDomainNetwork Method
The name of the desired DomainNetwork object to return.
Example

In This Topic
    GetDomainNetwork Method
    In This Topic
    Gets the DomainNetwork with the specified name from this utility network. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public DomainNetwork GetDomainNetwork( 
       string domainNetworkName
    )
    Public Function GetDomainNetwork( _
       ByVal domainNetworkName As String _
    ) As DomainNetwork

    Parameters

    domainNetworkName
    The name of the desired DomainNetwork object to return.

    Return Value

    A DomainNetwork object with the specified name.
    Exceptions
    ExceptionDescription
    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.
    Example
    Find a Tier given a Domain Network name and Tier name
    using (UtilityNetworkDefinition utilityNetworkDefinition = utilityNetwork.GetDefinition())
    {
      DomainNetwork domainNetwork = utilityNetworkDefinition.GetDomainNetwork(domainNetworkName);
      Tier tier = domainNetwork.GetTier(tierName);
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also