ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.UtilityNetwork Namespace / Subnetwork Class / Update Method / Update(TraceConfiguration) Method
The argument to override the default trace configuration stored on the Tier.

In This Topic
    Update(TraceConfiguration) Method
    In This Topic
    Updates the subnetwork. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void Update( 
       TraceConfiguration traceConfiguration
    )
    Public Overloads Sub Update( _
       ByVal traceConfiguration As TraceConfiguration _
    ) 

    Parameters

    traceConfiguration
    The argument to override the default trace configuration stored on the Tier.
    Exceptions
    ExceptionDescription
    traceConfiguration is null.

    This subnetwork no longer exists (e.g., it has been purged from the database).

    -or-

    This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when editing is in progress.

    A geodatabase-related exception has occurred.
    This method or property must be called within the lambda passed to QueuedTask.Run
    Remarks
    • This routine generates its own editing transaction, and therefore cannot be wrapped in a separate transaction. Because the editing performed by this routine cannot be undone, this routine can also not be called within an editing session. All edits in the current edit session must be saved or discarded before calling this routine.
    • If the preexisting subnetwork state is Dirty or Clean, the new state will be Clean if successful.
    • If the preexisting subnetwork state is DirtyAndDeleted or CleanAndDeleted, the new state will be CleanAndDeleted if successful.
    • When running in a Pro add-in, ArcGIS.Desktop.Mapping.MapView.Redraw should be called with a true argument to refresh the display cache and redraw the map.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also