ArcGIS Pro 2.8 API Reference Guide
AddDiagramLayerAsync Method

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.
Add a diagram layer to a diagram map.
Syntax
public static Task<DiagramLayer> AddDiagramLayerAsync( 
   Map map,
   NetworkDiagram networkDiagram
)
Public Shared Function AddDiagramLayerAsync( _
   ByVal map As Map, _
   ByVal networkDiagram As NetworkDiagram _
) As Task(Of DiagramLayer)

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

The added diagram layer.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MappingExtensions Class
MappingExtensions Members