ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.NetworkDiagrams Namespace / NetworkDiagram Class / FindInitialNetworkRows Method
Example

In This Topic
    FindInitialNetworkRows Method
    In This Topic
    Gets a IReadOnlyList of FindResultItems corresponding to the initial list of network rows used to generate the diagram. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public IReadOnlyList<FindResultItem> FindInitialNetworkRows()
    Public Function FindInitialNetworkRows() As IReadOnlyList(Of FindResultItem)

    Return Value

    Exceptions
    ExceptionDescription
    A geodatabase-related exception has occurred.
    Example
    Find Initial Network Rows Used to create a Network Diagram
    public void FindInitialNetworkRows(NetworkDiagram diagram)
    {
      IReadOnlyList<FindResultItem> rows = diagram.FindInitialNetworkRows();
      foreach (var findRow in rows)
      {
        long objectID = findRow.ObjectID;
        Guid guid = findRow.GlobalID;
        GeometryType geometryType = findRow.GeometryType;
        int sourceID = findRow.SourceID;
      }
    }
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also