public NetworkDiagram GetNetworkDiagram()
Public Function GetNetworkDiagram() As NetworkDiagram
Return Value
The network diagram associated with the layer.
public NetworkDiagram GetNetworkDiagram()
Public Function GetNetworkDiagram() As NetworkDiagram
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
ArcGIS.Core.Data.Exceptions.GeodatabaseNetworkDiagramException | Could not open the network diagram. |
public void GetDiagram(DiagramLayer diagramLayer) { // note - methods need to run on MCT NetworkDiagram diagram = diagramLayer.GetNetworkDiagram(); // get the consistency state from the layer DiagramLayerConsistencyState dlState = diagramLayer.ConsistencyState; // or from the diagram NetworkDiagramConsistencyState ndState = diagram.GetConsistencyState(); }
Target Platforms: Windows 11, Windows 10, Windows 8.1