ArcGIS Pro 3.7 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 Function GetDomainNetwork( _
       ByVal domainNetworkName As String _
    ) As DomainNetwork
    public DomainNetwork GetDomainNetwork( 
       string domainNetworkName
    )

    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
    {
      static void FindATierFromDomainNetworkNameAndTierName(UtilityNetwork utilityNetwork, string domainNetworkName, string tierName)
      {
        using UtilityNetworkDefinition utilityNetworkDefinition = utilityNetwork.GetDefinition();
        DomainNetwork domainNetwork = utilityNetworkDefinition.GetDomainNetwork(domainNetworkName);
        Tier tier = domainNetwork.GetTier(tierName);
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also