ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MappingExtensions Class / AddDiagramLayerAsync Method
The map to add the diagram layer.
The diagram for which a diagram layer is created and added to the map.

In This Topic
    AddDiagramLayerAsync Method
    In This Topic
    Add a diagram layer to a diagram map.
    Syntax
    Public Shared Function AddDiagramLayerAsync( _
       ByVal map As Map, _
       ByVal networkDiagram As NetworkDiagram _
    ) As Task(Of DiagramLayer)
    public static Task<DiagramLayer> AddDiagramLayerAsync( 
       Map map,
       NetworkDiagram networkDiagram
    )

    Parameters

    map
    The map to add the diagram layer.
    networkDiagram
    The diagram for which a diagram layer is created and added to the map.

    Return Value

    A Task to the added diagram layer.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also