Public Function GetNetworkDiagram() As NetworkDiagram
public NetworkDiagram GetNetworkDiagram()
Return Value
The network diagram associated with the layer.
Public Function GetNetworkDiagram() As NetworkDiagram
public NetworkDiagram GetNetworkDiagram()
| 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. |
{
// Get the NetworkDiagram from a DiagramLayer and check its ConsistencyState
static void GetDiagram(DiagramLayer diagramLayer)
{
NetworkDiagram diagram = diagramLayer.GetNetworkDiagram();
// Get the consistency state from the layer
DiagramLayerConsistencyState diagramLayerConsistencyState = diagramLayer.ConsistencyState;
// Or from the diagram
NetworkDiagramConsistencyState diagramConsistencyState = diagram.GetConsistencyState();
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)