Parameters
- container
- Represents an equipment container (UnitIdentifier), such as a rack or a switch.
- firstUnit
- Represents the first unit in the gap range to reserve.
- lastUnit
- Represents the last unit in the gap range to reserve.
| Exception | Description |
|---|---|
| System.InvalidOperationException | This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress. |
| ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
await QueuedTask.Run(() => { using (UnitIdentifierManager unitIdentifierManager = utilityNetwork.GetUnitIdentifierManager()) { var networkSource = utilityNetwork.GetDefinition().GetNetworkSource("TelecomDevice"); UnitIdentifier containerUnitIdentifier = new UnitIdentifier(networkSource, globalID); // Reserve a gap in the container for units 2 through 5. unitIdentifierManager.ReserveUnitIDs(containerUnitIdentifier, 2, 5); } });
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)