ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork.Telecom Namespace / UnitIdentifierManager Class / Resize Method
Represents the equipment container (UnitIdentifier) to resize.
Represents the new last unit in the container.
Example

In This Topic
    Resize Method
    In This Topic
    Updates the number of units in an equipment container. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Sub Resize( _
       ByVal content As UnitIdentifier, _
       ByVal lastUnit As Short _
    ) 
    public void Resize( 
       UnitIdentifier content,
       short lastUnit
    )

    Parameters

    content
    Represents the equipment container (UnitIdentifier) to resize.
    lastUnit
    Represents the new last unit in the container.
    Exceptions
    ExceptionDescription
    This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress.
    A geodatabase-related exception has occurred.
    Example
    Resize the content of a container in the utility network
    await QueuedTask.Run(() =>
    {
      using (UnitIdentifierManager unitIdentifierManager = utilityNetwork.GetUnitIdentifierManager())
      {
        var networkSource = utilityNetwork.GetDefinition().GetNetworkSource("TelecomDevice");
        UnitIdentifier content = new UnitIdentifier(networkSource, globalID);
    
        // Update the number of units in an equipment container.
        unitIdentifierManager.Resize(content, 5);
    
      }
    });
    Requirements

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

    ArcGIS Pro version: 3.7 or higher.
    See Also