ArcGIS Pro 2.6 API Reference Guide
GetNetworkDiagram Method (DiagramLayer)

ArcGIS.Desktop.Mapping Namespace > DiagramLayer Class : GetNetworkDiagram Method
Gets network diagram associated with the layer. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public NetworkDiagram GetNetworkDiagram()
Public Function GetNetworkDiagram() As NetworkDiagram

Return Value

The network diagram associated with the layer.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Could not open the network diagram.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

DiagramLayer Class
DiagramLayer Members